n = int(input()) total_xor = [n, 1, n + 1, 0][n % 4] print("O" if total_xor != 0 else "X")