var P=" "*303 while(0<1){var i=0;for(c<-readLine){if(c>32)P=P.updated(i,c);i+=1};println(P.trim)}