include

include

using namespace std;
int main(){
int n=0;
while(cin>>n){
//两部分输出
//第一部分:正置金字塔 前n行
for(int i=0;i<n;i++){
for(int j=0;j<n-i;j++)//输出空格起点与终点
cout<<" ";//输出空格
for(int w=0;w<=i;w++)
cout<<"* ";//按格式输出图案
cout<<endl;
}
//第二部分:倒置金字塔 后n+1行
for(int i=n;i>=0;i--){
for(int j=0;j<n-i;j++)//输出空格
cout<<" ";
for(int j=0;j<=i;j++)//按格式输出图案
cout<<"* ";
cout<<endl;
}

}
return 0;

}