#include <iostream>
using namespace std;
int main()
{
char s=' ';
int n=5;
int i, j;
cin >> s;
for (i = 0; i <n/2; ++i)
{
for (j = 1; j <=n/2-i ; ++j)
cout << " ";
for (j = 1; j <= (2*i+1); ++j)
cout << s;
cout << endl;
}
for (i = n/2; i >= 0; --i)
{
for (j = 1; j <= n / 2 - i; ++j)
cout << " ";
for (j = 1; j <= (2 * i + 1); ++j)
cout << s;
cout << endl;
}
return 0;
}
using namespace std;
int main()
{
char s=' ';
int n=5;
int i, j;
cin >> s;
for (i = 0; i <n/2; ++i)
{
for (j = 1; j <=n/2-i ; ++j)
cout << " ";
for (j = 1; j <= (2*i+1); ++j)
cout << s;
cout << endl;
}
for (i = n/2; i >= 0; --i)
{
for (j = 1; j <= n / 2 - i; ++j)
cout << " ";
for (j = 1; j <= (2 * i + 1); ++j)
cout << s;
cout << endl;
}
return 0;
}