Inspector Lestrade pursues a criminal who runs straight along a street. Both start at point and move in the same direction.
With Sherlock's help, the inspector learned that the criminal has an unknown but constant speed (1 \le v \le k). Each second he necessarily moves exactly cells forward.
Lestrade does not know the value of , but he can plan his own steps in advance. At the -th second he moves exactly s_i (0 \le s_i \le k). Lestrade's strategy is a predetermined sequence s_1, s_2, \dots, s_n which he must follow regardless of the criminal's actions.
After each second (that is, when both have taken the next step) they check whether they occupy the same cell. As soon as this happens at least once (after at least one move), the pursuit is considered successful.
Lestrade is very reluctant to turn to Sherlock for help again, as he will once more mock the Scotland Yard police. Therefore, he turns to you. Your task is to help the inspector compose a sequence of steps that guarantees meeting the criminal for any possible speed in the range from to .
In a single line, there is one integer (1 \le k \le 1000).
In the first line print one integer (1 \le n \le 10^{6}) — the number of steps Lestrade will take.
In the second line print integers s_1, s_2, \dots, s_n (0 \le s_i \le k) — Lestrade's steps in the corresponding seconds.
The sequence must guarantee that, regardless of the criminal's speed v \in [1,k], at some moment after a move their coordinates coincide. If there are multiple correct answers, you may print any of them.
Example 1
Example 2
In the first example, for k=2 the criminal's speed may be either or . The step sequence guarantees a meeting: at v=2 they coincide after the first move, and at v=1 after the second.
In the second example, for k=3 the possible speeds are v\in\{1,2,3\}. The sequence \{3,0,0,3,3,3\} ensures a meeting: at v=3 after the first move, at v=2 after the sixth, and at v=1 after the third.