
The special April contests have just ended, but the problem setters are still marveling over the yearly event.
For example, a Fool's number is an attractive positive integer. A Fool's number has the interesting property that, in its decimal representation, it is possible to insert spaces to form a series of
A problem setter defines the Fool's sequence, which contains every Fool's number in strictly increasing order, with no additional terms that are not Fool's numbers (what is the fun if the
However, the sequence grows quite strangely, and it is hard to list the sequence! What is the
Constraints
In all subtasks,
Subtask | Points | |
---|---|---|
1 | 5 | |
2 | 15 | |
3 | 40 | |
4 | 20 | |
5 | 20 |
Input Specification
The first line contains one integer,
The next
Output Specification
Output the
Sample Input
2
3
5
Sample Output
6969
69420
Explanation for Sample Output
The first
The
The
Comments