s[];main(p){while(gets(p=s))printf("%c%2s %d\n",*s,index(s,0)-1,rindex(s,*s)-p+1);}