char i[99],o[99],*r,*w;\x0d n;\x0d main(l){\x0d \x09for(;0<scanf("%s",i);){\x0d \x09\x09w=o;\x0d \x09\x09for(r=i;*r;){\x0d \x09\x09\x09l=(96<(r[1]))+1;\x0d \x09\x09\x09n=1;sscanf(&r[l],"%d",&n);\x0d \x09\x09\x09w+=sprintf(w,"%.*s %d ",l,r,n);\x0d \x09\x09\x09for(;!isupper(*++r)&&*r;);\x0d \x09\x09}\x0d \x09\x09*--w=10;\x0d \x09\x09printf(o);\x0d \x09}\x0d }\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).