#17937: 解題紀錄


7ooae979@gmail.com (ZHE)


import sys
for x in sys.stdin:
x = int(x)
x = bin(x)
print(x[2:len(x)])