n=int(input())+1 f=0 for i in range(32): w=1<=w: f|=(n%(w*2)-w)%2 print("XO"[f>0])