include<bits/stdc++.h>

using namespace std;
int main()
{
int n;
while(cin>>n)//多组输入
{
for(int i=0;i<n;i++)//控制行
{
for(int j=0;j<n-i-1;j++)//控制要输出的空格
cout<<" ";//注意两个空格
for(int k=0;k<=i;k++)//控制输出图案的个数,至于为什么看图
{
cout<<"*"<<" ";
}
cout<<endl;//回车
}
}
return 0;
}