#include int main(void) { unsigned long n; while(scanf("%lu", &n)==1) { if((n%4)!=3) printf("O\n"); else printf("X\n"); } return 0; }