#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
char a[n][n];
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
a[i][j] = ' ';
}
}
for (int i = 0; i < n; ++i) {
a[0][i] = '*';
a[i][0] = '*';
a[n - 1][i] = '*';
a[i][n - 1] = '*';
a[i][i] = '*';
a[i][n - 1 - i] = '*';
}
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
cout << a[i][j];
}
cout << "\n";
}
}