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