def solve(n): winning = 0 for i in range(1, n + 1): winning ^= i return "X" if winning == 0 else "O" n = int(input()) print(solve(n))