n = int(input()) if n <= 2: print('O') exit() b = format(n, 'b') for c in b: if c == '0': print('O') exit() else: print('X')