import sys readline=sys.stdin.readline N=int(readline()) if N%4==3: ans="X" else: ans="O" print(ans)