n = int(input()) print("X" if n % 4 == 3 else "O")