| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 52 | 32 | 18 | 66.667% |
Android Vasya attends Maths classes. His group started to study the number theory recently. The teacher gave them several tasks as a homework. One of them is as follows.
There is an integer $n$. The problem is to find a sequence of integers $a_1, \ldots, a_n$ such that for any $k$ from 2 to $n$ the sum $a_1 + \ldots + a_k$ has exactly $a_k$ different positive divisors. Help Vasya to cope with this task.
The only line contains an integer $n$ (2ドル \leq n \leq 100,000円$).
If there is no such sequence output Impossible. Otherwise output space-separated integers $a_1, \ldots, a_n$ (1ドル \leq a_i \leq 300$).
3
1 3 4