#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N=1e5+1e4,M=1e3+1e2;
const ll Maxn=0x3ffffff,Minm=-0x3ffffff;
ll n;
signed main()
{
cin>>n;
ll cnt=n/2;
for(ll i=1;i<=n;i+=2)
{
for(ll j=1;j<=cnt;j++)cout<<" ";
for(ll j=1;j<=i;j++)cout<<"*";
cnt--;
cout<<"\n";
}
cnt=0;
for(ll i=n-2;i>=1;i-=2)
{
cnt++;
for(ll j=1;j<=cnt;j++)cout<<" ";
for(ll j=1;j<=i;j++)cout<<"*";
cout<<"\n";
}
}