import re f=re.sub while 1:print f('\B\d','',f('(\D[a-z]*)',r'1 \1 ',raw_input()+'1'))[2:]