N = int(input()) if N in (1, 2): print("O") elif N % 2 == 0: print("O") else: print("X")