#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 4000000000000000001 int main(){ int h,w; cin>>h>>w; deque d; rep(i,h*w)d.push_back(i+1); vector a(h,vector(w)); for(int i=0;i<=h+w;i+=2){ rep(j,i+1){ int x = j,y = i-j; if(x