def dec_bin(s): if s==0: return 0 else: a='' while s!=0: n=s%2 s=s//2 a=str(n)+a return a s=int(input()) res=dec_bin(s) print(res)