#include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
int n;
int cnt, cnt_abs;
int main()
{
scanf("%d", &n);
cnt = n/2+1;
for(int i = 1; i <= n; ++i)
{
cnt_abs = abs(cnt-i); //打印每行的空格用,用绝对值,考虑到下半部分和上半部分是对称的
for(int j = 1; j <= cnt_abs; ++j)
{
cout<<" ";
}
for(int k = cnt_abs+1; k <= n-cnt_abs; ++k) //同样是对称的结构
{
cout<<"*";
}
cout<<endl;
}
return 0;
}