#include using namespace std; typedef long long int ll; //------------------------------------------------------ int main() { ll n; cin >> n; cout << (n % 4 == 3 ? "X" : "O") << endl; return 0; }