#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x;
cin >> x;
if (abs(x) <= 105)
if (x >= -5 && x <= 1 || x >= 7 && x <=13)
cout << '1';
else
cout << 'O';
}
return 0;
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x;
cin >> x;
if (abs(x) <= 105)
{
if (x >= -5 && x <= 1 || x >= 7 && x <=13)
cout << '1';
else
cout << 'O';
}
return 0;
}