import re;print re.sub('\w+',lambda m:`len(m.group())`+'_'+m.group(),raw_input())