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