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