#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cin>>n;
int h=n*2-1;
for(int i=1;i<=n;i++){
for(int k=1;k<=3;k++){
for(int j=1;j<=(h-(i*2-1))/2;j++){
cout<<' ';
}
for(int j=1;j<=i*2-1;j++){
cout<<'*';
}
for(int j=1;j<=(h-(i*2-1))/2;j++){
cout<<' ';
}
}
cout<<endl;
}
return 0;
}
/**************************************************************
Problem: 1006
User: liangshinan
Language: C++
Result: Accepted
Time:4 ms
Memory:2228 kb
****************************************************************/