#include<stdio.h>
int main() {
int n;
while (scanf("%d", &n) != EOF) {
for (int i = 0; i < n; i++) { //外循环行
for (int j = 0; j < n; j++) { //内循环列
if (i == n - 1 || j == 0 || i == j) printf("* ");
else printf(" ");
}
printf("\n");
}
}
return 0;
}
int main() {
int n;
while (scanf("%d", &n) != EOF) {
for (int i = 0; i < n; i++) { //外循环行
for (int j = 0; j < n; j++) { //内循环列
if (i == n - 1 || j == 0 || i == j) printf("* ");
else printf(" ");
}
printf("\n");
}
}
return 0;
}