System.in.eachLine{l->println l=~/ /?l[0]+' '*(l.count-2)+l.replaceAll(/ |.$/,''):l}