#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char str[100];
int i,j,l;
cin>>str;
l=strlen(str);
for(i=0;i<l;i++)
{
for(j=0;j<l;j++)
{
if(i==j||(i+j==l-1))
cout<<str[j];
else
cout<<" ";
}
cout<<"\n";
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGNzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkKewoJY2hhciBzdHJbMTAwXTsKCWludCBpLGosbDsKCWNpbj4+c3RyOwoJbD1zdHJsZW4oc3RyKTsKCWZvcihpPTA7aTxsO2krKykKCXsKCQlmb3Ioaj0wO2o8bDtqKyspCgkJewoJCQlpZihpPT1qfHwoaStqPT1sLTEpKQoJCQkJY291dDw8c3RyW2pdOwoJCQllbHNlCgkJCQljb3V0PDwiICI7CgkJfQoJCWNvdXQ8PCJcbiI7Cgl9CglyZXR1cm4gMDsKfQ==