#include <iostream>
using namespace std;
int main()
{
int h,row,col=0;
while(cin>>h)
{
row=h; //行数
col=h+2*(h-1); //列数
for (int i=0;i<row;i++)
{
for (int j=0;j<col;j++)
{
if(j<col-(h+2*i)) //前面的空额
cout <<" ";
else
cout <<"*";
}
cout <<endl;
}
}
return 0;
}