main(){int X[9];while(gets(X))putchar(*X%2?79:69);}