CSES - KILO 2018 2/5 - Lantern Line
  • Time limit: 1.00 s
  • Memory limit: 512 MB

There is a line of nn lanterns, numbered 1,2,,n1,2,\dots,n. Initially, at time 00, only lantern 11 is on, and all others are off.

At time t>0t > 0, the ii'th lantern is on if exactly one of lanterns i1i-1 or i2i-2 was on at time t1t-1. There are two special cases: Lantern 11 is never on at time t>0t > 0, and lantern 22 is on at time t>0t > 0 if lantern 11 is on at time t1t - 1.

For every time t[0,n)t \in [0, n), find out how many lanterns are on.

Input

The first line of input contains a single integer nn.

Output

Output nn integers c0,,cn1c_{0}, \dots, c_{n-1}, where ctc_{t} is the amount of lanterns on at time tt.

Constraints

  • 1n41051 \leq n \leq 4 \cdot 10^{5}

Example

Input:

6

Output:

1 2 2 3 1 1

Explanation:

0: 100000
1: 011000
2: 001010
3: 000111
4: 000010
5: 000001

Where the number on the left is the time tt, and the ii'th bit is 1 if lantern ii is on at time tt, and 0 otherwise.