IntermediateRating 1400
Base Minus Two
Write n in base −2: digits 0 and 1, where the place values are 1, −2, 4, −8, 16, …
Input
One integer n (−10⁹ ≤ n ≤ 10⁹).
Output
A string of 0s and 1s.
Sample 1
Input
2
Output
110
Sample 2
Input
3
Output
111
Output appears here