#include
using namespace std;
int main(){
int i,j,n;
cin>>n;
cout<<"\n";
for(i=1; i<=n; i++){
for(j=1; j=n-1; j++){
cout<<" “;
}
for(j=1; j<=n; j++){
if(i==1 || i==n || j==1 || j==n){
cout<<”*";
}
else{
cout<<" ";
}
}
cout<<"\n";
}
}