N=int(input()) c2=0 while N%2==0: c2+=1 N//=2 if c2==1: print(-1) else: print(1)