#include #define ll long long using namespace std; int main(){ ll n; cin>>n; if((n+1)%4) cout<<"O"<