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