#include using namespace std; int main(){ int n; scanf("%d", &n); if(n % 4 == 3) cout << "X" << endl; else cout << "O" << endl; return 0; }