#include #include using namespace std; using namespace atcoder; #define rep(i, l, r) for (ll i = (l); i < (r); ++i) #define all(x) (x).begin(), (x).end() using ll = long long; using pl = pair; using vl = vector; using vvl = vector>; using vvvl = vector>>; using vvvvl = vector>>>; #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using mint=modint998244353; vl solve1d(ll n){ if(n==1)return {0}; if(n==2)return {0,1}; ll k=0; rep(i,0,22){ if(n&(1<=h){ u=(1<=w){ v=(1<e){ ee=(1<>h>>w; if(h%2!=0||w%2!=0){ cout<<-1<b){ rep(i,0,h)rep(j,0,w)ans[i][j]=ans2[j][i]; } rep(i,0,h){ rep(j,0,w){ cout<