k,c;main(i,h){c=getchar()%26;~c&&main(~c%5?1:i*2-c%4,c==10?k=!printf("%d %d %d\n",h,k,i/2):c?k=c-3?k:i,h:i);}