Electronic lock
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The traitors blocked the doors again. And to open them, you must enter the code.
The field for entering the code is an endless sequence of -segment indicators. It is known that the code is the largest positive integer, for displaying which no more than burning segments are used.
Help the team find out the code.
Input
The first line contains one integer — the maximum number of burning segments when displaying the number.
Output
Print one number — the required code.
Examples
Input #1
Answer #1
Submissions 519
Acceptance rate 57%