#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; int G[1010][1010]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; int now=1; auto f=[&](int l,int r)->void{ if(l==r) G[l][r]=now; else{ int t=0; int i=l,j=l; while(ir) break; f(l,r); } rep(i,n){ rep(j,n){ if(j) cout<<" "; cout<