for(;;)print(readline().replace(/(?=[^Ia-z]|InP)/g,' ').toLowerCase())