n = int(input()) if n == 0: print(-1) exit() ans = [0] if n&1: ans.append(1) for i in range(1,50): if not n >> i & 1: continue ans.append(1<