Ones and sevens
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the n-th number of the increasing sequence of positive integers:
1 7 11 17 71 77 111 117 171 177 711 717..
Input
One positive integer n (1 ≤ n ≤ 10^7
).
Output
Print thee n-th number of the given sequence.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 28%