#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
int a, b = 0;
char m = 0;
scanf("%c", &m);
int n = 3;
for (a = 1;a <= n; a++)
{
for (b = 0; b < ((2 * n) - 1 - (2*a-1)) / 2; b++)
{
printf(" ");
}
for (b = 0; b < 2 * a - 1; b++)
{
printf("%c", m);
}
for (b = 0; b < (2 * n - 1 - (2*a-1)) / 2; b++)
{
printf(" ");
}
printf("\n");
}
for (a = 2;a > 0; a--)
{
for (b = 0; b < ((2 * n) - 1 - (2*a-1)) / 2; b++)
{
printf(" ");
}
for (b = 0; b < 2 * a - 1; b++)
{
printf("%c", m);
}
for (b = 0; b < (2 * n - 1 - (2*a-1)) / 2; b++)
{
printf(" ");
}
printf("\n");
}
return 0;
}