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