n = int(input()) if (n+1)%4 == 0: print("X") else: print("O")