Hard
Async Pipeline
Stage 1 coroutine doubles a number, stage 2 adds 1, each with a tiny sleep. For every input number run both stages in order, but process all numbers concurrently with gather. Print the results in input order.
Input
One line of integers.
Output
One line.
Sample 1
Input
1 2 3
Output
3 5 7
Sample 2
Input
0
Output
1
Output appears here