Try it with this test case. It should print out the numbers 1 to 10.
1
2
3
4
5
6
7
8
9
10
42
43
44
45
You do understand the the example test case given in the problem is just that - an example to illustrate the I/O format. The real and hidden test cases are likely to be much bigger.