#include using namespace std; int main() { int N; cin >> N; if((N + 1) % 4 == 0) cout << "X" << endl; else cout << "O" << endl; }