#include using namespace std; typedef long long ll; int main(void) { ll N; cin >> N; if (N % 4 == 3) cout << "X" << endl; else cout << "O" << endl; return 0; }