n = int(input()) if n <= 2: print('O') exit() if n%4 == 3: print('X') else: print('O')