시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 128 MB93294379358745.911%

문제

-2진법은 부호 없는 2진수로 표현이 된다. 2진법에서는 20, 21, 22, 23이 표현 되지만 -2진법에서는 (-2)0 = 1, (-2)1 = -2, (-2)2 = 4, (-2)3 = -8을 표현한다. 10진수로 1부터 표현하자면 1, 110, 111, 100, 101, 11010, 11011, 11000, 11001 등이다.

10진법의 수를 입력 받아서 -2진수를 출력하는 프로그램을 작성하시오.

입력

첫 줄에 10진법으로 표현된 수 N이 주어진다.

출력

-2진법 수를 출력한다.

제한

  • -2,000,000,000 ≤ N ≤ 2,000,000,000

예제 입력 1

-13

예제 출력 1

110111
W3sicHJvYmxlbV9pZCI6IjIwODkiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiItMlx1YzljNFx1YzIxOCIsImRlc2NyaXB0aW9uIjoiPHA+LTJcdWM5YzRcdWJjOTVcdWM3NDAgXHViZDgwXHVkNjM4IFx1YzVjNlx1YjI5NCAyXHVjOWM0XHVjMjE4XHViODVjIFx1ZDQ1Y1x1ZDYwNFx1Yzc3NCBcdWI0MWNcdWIyZTQuIDJcdWM5YzRcdWJjOTVcdWM1ZDBcdWMxMWNcdWIyOTQgMjxzdXA+MDxcL3N1cD4sIDI8c3VwPjE8XC9zdXA+LCAyPHN1cD4yPFwvc3VwPiwgMjxzdXA+MzxcL3N1cD5cdWM3NzQgXHVkNDVjXHVkNjA0IFx1YjQxOFx1YzljMFx1YjljYyAtMlx1YzljNFx1YmM5NVx1YzVkMFx1YzExY1x1YjI5NCAoLTIpPHN1cD4wPFwvc3VwPiA9IDEsICgtMik8c3VwPjE8XC9zdXA+ID0gLTIsICgtMik8c3VwPjI8XC9zdXA+ID0gNCwgKC0yKTxzdXA+MzxcL3N1cD4gPSAtOFx1Yzc0NCBcdWQ0NWNcdWQ2MDRcdWQ1NWNcdWIyZTQuIDEwXHVjOWM0XHVjMjE4XHViODVjIDFcdWJkODBcdWQxMzAgXHVkNDVjXH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