#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b=0;
cin>>a;
b=1;
for(int i=1;i<=a;i++){
for(int k=0;k<a-i;k++){
cout<<" ";
}
if(i1){
cout<<""<<endl;
continue;
}
cout<<"";
for(int k=0;k<b;k++){
cout<<" ";
}
cout<<"*";
cout<<endl;
b+=2;
}
b-=4;
for(int i=1;i<a;i++){
for(int k=0;k<i;k++){
cout<<" ";
}
if(ia-1){
cout<<""<<endl;
continue;
}
cout<<"";
for(int k=0;k<b;k++){
cout<<" ";
}
cout<<"*";
cout<<endl;
b-=2;
}
}