#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
//利用曼哈顿距离打印菱形;
int n;
cin >> n;
int cx = n / 2, cy = n / 2;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)//两层for循环用于打印出全空棋盘
{
if (abs(i - cx) + abs(j - cy) <= n / 2)//abs为绝对值函数
cout << '*';
else
{
cout << ' ';
}
}
cout << endl;//换行
}
return 0;
}