include [HTML_REMOVED]
using namespace std;
int main(){
int n;
while(cin>>n,n){
for(int i=0;i<n;i){
for(int j=0;j<n;j){
int u=i+1,d=n-i,l=j+1,r=n-j;
printf(“%d “,min(min(u,d),min(l,r)));
}
cout << endl;
}
cout << endl;
}
}
//菜就多练