n=input() s='' while n:s=str(n&1)+s;n/=2 print s