for(;;)print(readline().replace(/ +/g,' ').trim())