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