#include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; #define debug(x) cerr << #x << " = " << (x) << endl; #define mod 1000000007 //1e9+7(prime number) #define INF 1000000000 //1e9 #define LLINF 2000000000000000000LL //2e18 #define SIZE 100010 int main(){ ll n,n2; cin >> n; n2 = n; ll t = 1; if(n == 0){ puts("X"); return 0; } for(int i=0;;i++){ ll p = n%t; if(n2%2 && p%2){ puts("X"); return 0; } if(n2 == 0) break; n2/=2; t*=2; } puts("O"); return 0; }