import sys def I(): return int(sys.stdin.readline()) def LI(): return list(map(int,sys.stdin.readline().split())) N =I() """ judge = int(0) for i in range(N): judge ^= (i+1) """ t = N+1 judge = int(0) if t%4!=0: judge=1 if judge==0: ans = "X" else: ans = "O" print(ans)