#include using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b; using graph = vector>; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; const ll INF = 1LL<<60; const ll mod = 1000000007LL; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ int N; cin>>N; vector v(N); rep(i,N) v[i]=i+1; rep(i,N){ rep(j,N){ cout<