a=int(input()) if a%2==1 or a==0 : print(-1) else: b=bin(a) length=len(b) for i in range(length): if b[i]=='1': print(2**int(length-i-1))