#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
using namespace std;
int main()
{
int N;
char c;
scanf("%d %c",&N,&c);
int col=N/2;
if(N%2!=0) col++;
for(int i=1;i<=col;i++){
for(int j=1;j<=N;j++){
if(j==1 || j==N) printf("%c",c);
else if(i==1 || i==col){
printf("%c",c);
}else{
printf(" ");
}
}
printf("\n");
}
return 0;
}