import re while 1:print re.sub("(?=[A-HJ-Z]|InP)"," ",raw_input()).lower()