include[HTML_REMOVED]
using namespace std;
int n;
int main(){
while(cin>>n){
for(int i=1; i<=n; i){
for(int j=1; j<=n; j){
cout<<abs(i-j)+1<<” “;
}
cout<<endl;
}
if(n)
cout<<endl;
}
}