#include <cstdlib>
#include <iostream>
#include <vector>
#include <cstring>
using namespace std;
int main( )
{
vector< string> v;
string sm;
while ( getline( cin , sm) )
{
v.push_back ( sm) ;
}
int p[ v.size ( ) ] ;
int max= 0 ;
for ( int i= 0 ; i< ( int ) v.size ( ) ; i++ )
{
p[ i] = 0 ;
string s;
for ( int j= 0 ; j< ( int ) v[ i] .length ( ) ; j++ )
{
if ( v[ i] [ j] ! = ' ' )
{
s+ = v[ i] [ j] ;
}
else if ( v[ i] [ j+ 1 ] ! = ' ' )
{
s+ = ' ' ;
p[ i] ++ ;
}
}
if ( s[ 0 ] == ' ' )
{
s.erase ( 0 , 1 ) ;
p[ i] -- ;
}
if ( s[ s.length ( ) - 1 ] == ' ' )
{
if ( strchr ( ",.!-?:\" \' " , s[ s.length ( ) - 2 ] ) ! = NULL ) s.erase ( s.length ( ) - 1 , 1 ) ;
p[ i] -- ;
}
v[ i] = s;
if ( max < ( int ) v[ i] .length ( ) )
{
max = ( int ) v[ i] .length ( ) ;
}
}
for ( int i= 0 ; i< ( int ) v.size ( ) ; i++ )
{
int k = ( int ) v[ i] .length ( ) ;
for ( int j= 0 ; j< ( int ) v[ i] .length ( ) ; j++ )
{
if ( v[ i] [ j] == ' ' && j+ 1 ! = ( int ) v[ i] .length ( ) )
{
v[ i] .insert ( j, ( max- k) / p[ i] , ' ' ) ;
j+ = ( max- k) / p[ i] ;
}
}
v[ i] .insert ( 0 , ( max- k) % p[ i] , ' ' ) ;
}
for ( int i= 0 ; i< ( int ) v.size ( ) ; i++ )
{
cout << v[ i] << endl;
}
}
I2luY2x1ZGUgPGNzdGRsaWI+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGNzdHJpbmc+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7Cgl2ZWN0b3I8c3RyaW5nPiB2OwoJc3RyaW5nIHNtOwoJd2hpbGUoIGdldGxpbmUoY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bnQpdltpXS5sZW5ndGgoKSApIAoJCQl7CgkJCQl2W2ldLmluc2VydChqLCAobWF4LWspL3BbaV0sICcgJyk7ICAgICAgCgkJCQlqKz0obWF4LWspL3BbaV07CQkJCQkJCgkJCX0KCQl9CgkJdltpXS5pbnNlcnQoMCwgKG1heC1rKSVwW2ldLCAnICcpOyAgICAJCQkKCX0KCQoJZm9yKCBpbnQgaT0wIDsgaTwoaW50KXYuc2l6ZSgpIDsgaSsrICkJCQkJCgl7CgkJY291dCA8PCB2W2ldIDw8IGVuZGw7Cgl9Cn0=
stdin
VGhlcmUgYXJlIG1hbnkgYmlnIGFuZCBzbWFsbCBsaWJyYXJpZXMgZXZlcnl3aGVyZSBpbiBvdXIgY291bnRyeS4KVGhleSBoYXZlIG1pbGxpb25zIG9mICBib29rcyBpbiBkaWZmZXJlbnQgbGFuZ3VhZ2VzLgpFdmVyeSBzY2hvb2wgaGFzIGEgbGlicmFyeS4KUHVwaWxzIGNvbWUgdG8gdGhlIGxpYnJhcnkgdG8gdGFrZSBib29rcyBvbiBkaWZmZXJlbnQgc3ViamVjdHMu
There are many big and small libraries everywhere in our country.
They have millions of books in different languages.
Every school has a library.
Pupils come to the library to take books on different subjects.