#include #define FOR(i, a, n) for (int i = a; i < n; i++) #define REP(w, n) FOR(w, 0, n) using namespace std; typedef long long ll; int main() { ll n; cin >> n; int a = 0; FOR(i, n - n % 4, n + 1) { a ^= i; } if (a > 0) { cout << "O" << endl; } else cout << "X" << endl; return (0); } //0 1 10 11 ->0 100 101 110 111 1000 3 4 8 16 32 64 128 256 512 1024 2048 4096 8192 1