#31814: 一行解 加while truewhile true


stevenwengtangpu (woooooooooo)


while True:
try:
print(bin(int(input()))[2:])
except:
break