#include int main(void){ unsigned long n; scanf("%lu", &n); printf("%c\n", "OOOX"[n % 4]); return 0; }