N = int(input()) ans = 1^((N-1)//2%2)^(N*((N-1)%2)) print("X" if ans==0 else "O")