#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a,n,b,c,d,m;
cin>>n;
m=n/2;
for(a=1;a<=m;a++){
for(b=1;b<m-a+3;b++){
cout<<" ";
}
for(b=1;b<a*2;b++){
cout<<"*";
}
for(b=1;b<=n-a*2;b++){
cout<<" ";
}
for(b=1;b<a*2;b++){
cout<<"*";
}
cout<<endl;
}
for(a=1;a<=n;a++){
for(b=0;b<=a-1;b++)
cout<<" ";
for(b=1;b<=n*2-a*2+1;b++)
cout<<"*";
cout<<endl;
}
return 0;}
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a,n,b,c,d,m;
cin>>n;
m=n/2;
for(a=1;a<=m;a++){
for(b=1;b<m-a+3;b++){
cout<<" ";
}
for(b=1;b<a*2;b++){
cout<<"*";
}
for(b=1;b<=n-a*2;b++){
cout<<" ";
}
for(b=1;b<a*2;b++){
cout<<"*";
}
cout<<endl;
}
for(a=1;a<=n;a++){
for(b=0;b<=a-1;b++)
cout<<" ";
for(b=1;b<=n*2-a*2+1;b++)
cout<<"*";
cout<<endl;
}
return 0;}