#include using namespace std; int main(){ unsigned int N; cin >> N; if (N % 4 == 3){ cout << 'X' << endl; } else { cout << 'O' << endl; } }