char s[9];k;main(t){for(t=-1;t<(k&=4111)?s[t=k]=48:s[t]++,k=k<10;gets(&k))fflush(!puts(s));}