import re while~0: for x,y in re.findall('(\w[a-z]?)(\d*)',raw_input()):print x,y or 1, print