-12. Up and Down

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to read a positive integer , then print a sequence of integers from 1 to , and then from to 1.

Input Format

There is one line in the input. The first line has the integer .

Output Format

There are lines in the output, according to the description.

Sample Input

5

Sample Output

1
2
3
4
5
4
3
2
1

Submit

Login

Testdata Set

Download Testdata