#include <iostream>
using namespace std;
using ll = long long int;

int main(){
    ll n;
    cin >> n;
    if(n % 2 == 0) cout << "O" << endl;
    else if(n % 4 == 1) cout << "O" << endl;
    else cout << "X" << endl;
    return 0;
}