#include<bits/stdc++.h>
using namespace std;
int main()
{
int i,j,n,k=0,o=1,h=1,g;
cin>>n;
k=o+(n-1)*2;
for(i=1;i<=n;i++){
for(g=1;g<=3;g++){
for(j=1;j<=(k-o)/2;j++){
cout<<" ";
}
for(h=1;h<=o;h++){
cout<<"*";
}
for(j=1;j<=(k-o)/2;j++){
cout<<" ";
}
}
cout<<endl;
o+=2;
}
return 0;
}
/**************************************************************
Problem: 1006
User: houshanglin
Language: C++
Result: Accepted
Time:4 ms
Memory:2072 kb
****************************************************************/