#include <iostream>
#include <string>
using namespace std;
int main() {
string s1;
cin>>s1;
int len = s1.size();
int high = len/3;//高
int lenth = len - high*2;//长
if(lenth==high){//不能相等
high-=1;
lenth+=2;
}
for(int i=0,j=len-1;i<high;i++,j--)
{
cout<<s1[i];
for(int k=1;k<=lenth-2;k++)
{
cout<<" ";
}
cout<<s1[j]<<endl;
}
for(int i=high;i<high+lenth;i++)
{
cout<<s1[i];
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号