#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) template bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;} template bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;} const long long mod=998244353; const long long mod2=469762049; const long long mod100=1000000007; int main(){ cout.tie()->sync_with_stdio(0); cin.tie(0); int N,K;cin>>N>>K; if(K==0){ cout<<-1<=1;i--){ for(int j=N;j>=1;j--){ K--; if(K==0){ swap(ans[1][1],ans[i][j]); f=true; break; } } if(f) break; } for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ cout<