l=[] n=input() while n>0:l+=[n%2];n=n/2 l.reverse() print''.join(map(str,l))