x=input();r='' while x:r=str(x&1)+r;x>>=1 print r