def solve(n): return "X" if n % 4 == 3 else "O" n = int(input()) print(solve(n))