Hide

Problem C
Countdown

Will things ever be the same again?

Write a program that, given an integer n as input, prints n, then n1, and so forth, until finally printing 1, at which point the program exits.

Input

Input consists of one line containing the integer n, where 1n104.

Output

Output consists of n lines, each line containing one integer.

Sample Input 1 Sample Output 1
6
6
5
4
3
2
1
Sample Input 2 Sample Output 2
1
1
Sample Input 3 Sample Output 3
23
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
Hide

Please log in to submit a solution to this problem

Log in