import sys
for line in sys.stdin: print('{:b}'.format(int(line)))
for line in sys.stdin:
print('{:b}'.format(int(line)))