using C=System.Console;class M{static void Main(){for(int c,p=0;(c=C.Read())>0;)if(c==49){C.Write((char)p);p=0;}else p=p>0?p+1:c<49?32:c*3-53+c/56;}}