Sequence#7339

Sequence

1 second
64 megabytes
Very easy

Find the -th term in the sequence: 1, 10, 11, 100, 101, 110, 111, 1000, \ldots.

Input

The input contains a single natural number (N \leq 10000).

Output

Output the -th term of the sequence.

Examples

Example 1

Loading
Loading