#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int x = (n + 1) / 2, y = (n + 1) / 2;
for (int i = 1; i <= n; i++)
{
for(int j = 1; j <= n; j++)
{
if(abs(j - x) + abs(i - y) < x) cout << "*";
else cout << " ";
}
if(i != n) cout << endl;
}
return 0;
}