#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; if(h==2&&w==2){ cout<<"Yes"< (w)); rep(i,w)a[0][i] = i; for(int i=1;i s; rep(i,h){ rep(j,w){ s.insert(a[i][j]); } } //cout<