N=int(input()) ans=0 if N%4==3: print('X') else: print('O')