#include using namespace std; int main(){ long long n;cin>>n; long long nw = 4; while(n > nw)nw *= 2; if(nw-1 == n){ cout << "X" << endl; }else{ cout << "O" << endl; } }