N = int(input()) bin_N = bin(N)[2:] print("X" if all(n=="1" for n in bin_N) else "O")