x=input() s="" while x:s="01"[x%2]+s;x/=2 print s