def d(n): if n//2 == 0: return str(n%2) return d(n//2)+str(n%2) N = int(input()) print(d(N))
N = int(input()) print(bin(N)[2:])