Interesting sequence#11397

Interesting sequence

1 second
128 megabytes
Medium

Ali enjoys creating interesting sequences in his spare time. This time, he took an empty sequence and performed operations on it.

In the -th operation:

  1. The number is appended to the end of the sequence .

  2. Then, the sequence is reversed.

At the end, Ali forgot the sequence and is now very worried. Help him recover the sequence.

\InputFileThe input contains a single integer (1 \le n \le 10^5).

\OutputFilePrint the resulting sequence after all operations. Output the elements in one line, separated by spaces.

\NoteLet's look at the process for the first test:

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading