#include using namespace std; int main(){ long long n; scanf("%lld", &n); if(n % 4 == 3) cout << "X" << endl; else cout << "O" << endl; return 0; }