#include
#include
using namespace std;
int main()
{
int n;
cin>>n;
for(int i=1;i<=n;i++){
//Print all the star in this case
if(i==1 || i == n){
for(int j=1;j<=n;j++){
cout<<"*"<<" ";
}
}
else {
if(i == (n-i+1)){
for(int j=1;j<=n;j++){
if(j==1 || j == n){
cout<<"*"<<" ";
}
else{
cout<<" "<<" ";
}
}
}
else{
for(int j=1;j<=n;j++){
if(j == n/2+1){
cout<<" "<<" ";
}
else{
cout<<"*"<<" ";
}
}
}
}
//for changing the row
cout<<endl;
}
return 0;
}