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