import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) if (n+1)%4==0: print("X") else: print("O")