#include "bits/stdc++.h" using namespace std; static void solve() { int n; cin >> n; if (!n) cout << "X\n"; n -= 3; if (n % 4 == 0) cout << "X\n"; else cout << "O\n"; } int main() { ios::sync_with_stdio(false); cin.tie(); solve(); }