#70Easy
Binary notation
Time: 1 s · Memory: 256 MB
- Working with numbers
Statement
You are given a non-negative integer . Write it in binary — this is exactly how a computer stores numbers, with s and s. For example, .
Input format
A single integer ().
Output format
The binary notation of without leading zeros. For — 0.
Examples
Input
13
Output
1101
Input
0
Output
0
Note
is the lowest bit and is the rest. Repeat until becomes zero: the bits come out right to left, so print them in reverse order (or prepend them to a string).
