import sys input = sys.stdin.readline n = int(input()) print("O" if n % 4 != 3 else "X")