var s:string;l:word;begin repeat readln(s);l:=l+length(s);writeln(s:l)until 1=0end.