eolymp
bolt
Try our new interface for solving problems

Chips

Given a strip of cells numbered from $1$ to $n$. It is allowed to remove or place a chip on the first cell or on the cell following the leftmost chip. The string is initially empty. It is required to occupy all the cells. \InputFile One positive integer $n\:(1 \le n \le 10)$. \OutputFile Print the sequence of cell numbers with which the action is performed. If a chip is removed, the cell number should be printed with a minus sign. The number of actions should not exceed $10^4$. If there are multiple solutions, print any of them.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3
Output example #1
1 2 -1 3 1