#include using namespace std; int main () { long n; cin >> n; cout << (n%4==3?"X":"O") << endl; }