#! /usr/bin/env python3 N = int(input()) if N == 1: print('O') else: print('XO'[(N-3) % 2])