#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
#pragma warning(disable : 4996)
using namespace std;
long long n;
int main() {
	cin >> n;
	cout << (n % 4 != 3 ? "O" : "X") << endl;
	return 0;
}