N=int(input()) if (N+1)%4: print("O") else: print("X")