for(;;)print(readline().replace(/\d/g,function(a)Array(-~a).join(a)))