import re while 1:print(*re.findall(r'\D+|\d+',re.sub('[A-z](?=[A-Z]|$)','\\g<0>1',input())))