while True: try: num=int(input()) list1=[] if num==0: print(num) else: while num>0: list1.append(num%2) num//=2 list1.reverse() for i in range(len(list1)): print(list1[i],end='') print() except EOFError: break