N = int(input()) for i in range(33): if 2**i - 1 == N: print('X') exit() print('O')