#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
char b;
cin >> n >> b;
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
if(i == 0||i== n - 1||i + j == n - 1)
{
cout << b;
}
else
{
cout << " ";
}
}
cout << endl;
}
}
12-19
1469
10-11