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