N = int(input()) ans = 1 for i in range(N): ans ^ i print(ans) if ans != 0: print('X') else: print('O')