#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000007; //10^9+7 ll n; int main(){ cin>>n; int a=0; rep(i,1,n+1){a^=i;} string ans=a==0?"X":"O"; print(ans); }