#ABC247C. [ABC247C] 1 2 1 3 1 2 1

[ABC247C] 1 2 1 3 1 2 1

Score : 300300 points

Problem Statement

We define sequences SnS_n as follows.

  • S1S_1 is a sequence of length 11 containing a single 11.
  • SnS_n (nn is an integer greater than or equal to 22) is a sequence obtained by concatenating Sn1S_{n-1}, nn, Sn1S_{n-1} in this order.

For example, S2S_2 and S3S_3 is defined as follows.

  • S2S_2 is a concatenation of S1S_1, 22, and S1S_1, in this order, so it is 1,2,11,2,1.
  • S3S_3 is a concatenation of S2S_2, 33, and S2S_2, in this order, so it is 1,2,1,3,1,2,11,2,1,3,1,2,1.

Given NN, print the entire sequence SNS_N.

Constraints

  • NN is an integer.
  • 1N161 \leq N \leq 16

Input

Input is given from Standard Input in the following format:

NN

Output

Print SNS_N, with spaces in between.

2
1 2 1

As described in the Problem Statement, S2S_2 is 1,2,11,2,1.

1
1
4
1 2 1 3 1 2 1 4 1 2 1 3 1 2 1
  • S4S_4 is a concatenation of S3S_3, 44, and S3S_3, in this order.