N = int(input()) if N & 1 == 0 and N & (1 << 1): print(-1) else: print(1)