char c,s[1],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;i--;write(1,s+i,s[i]==c+47));}