while True:
try:
answer=[0 for i in range(10)]
n=int(input())
i=0
while n>0:
answer[i]=n%2
i=i+1
n=n//2
for j in range(i-1,-1,-1):
print(answer[j],end="")
print()
except:
break