Competitions

# 2023 Azerbaijan, Semifinals, February 18, 10 - 11 classes

# Strange sequence

Create a sequence `a`

, _{1}`a`

, ..., _{2}`a`

, consisting of _{n}**n** elements, such that the following conditions are true:

**0**<`a`

<_{1}`a`

< ... <_{2}`a`

<_{n}`10`

,^{6}- ld(
`a`

) = fd(_{1}`a`

), ld(_{2}`a`

) = fd(_{2}`a`

), ..., ld(_{3}`a [n-1]`

) = fd(`a`

). Here ld(_{n}**x**) stands for the last digit of**x**and fd(**x**) stands for the first digit of**x**. In other words, the first digit of each element, starting from the 2nd element in this sequence, must be equal to the last digit of the previous element. Note that numbers cannot start with**0**.

#### Input

One integer **n** (**1** ≤ **n** ≤ `10`

).^{5}

#### Output

Print any sequence `a`

, _{1}`a`

, ..., _{2}`a`

in one line that satisfies the condition of the problem._{n}

It is guaranteed that such a sequence always exists under the given conditions.

Input example #1

4

Output example #1

1 11 111 1111

Input example #2

5

Output example #2

3 35 59 92 200