#include<iostream> using namespace std; int main(){ int a[11][11],n,t=1; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<t<<" "; t++; } cout<<endl; } }