for(U=[],R=[];Q=readline();R.push(T))for(F in T=Q.split('`'))(L=T[F].length)<U[F]?0:U[F]=L;for(F in R){for(G in Q=R[F])for(;!Q[G][~-U[G]];)Q[G]+=' ';print(Q.join(' '))}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).