#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;

int G[1010][1010];
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  int h,w;
  cin>>h>>w;
  cout<<"Yes"<<endl;
  
  int ni=0,nj=0;
  bool b=false;
  int now=1;
  rep(i,h) rep(j,w){
    if(i%2==0 && j%2==1) continue;
    if(i%2==1 && j%2==0) continue;
    G[i][j]=now;
    now++;
  }
  
  now=h*w;
  rep(i,h) rep(j,w){
    if(G[i][j]) continue;
    G[i][j]=now;
    now--;
  }
  
  rep(i,h){
    rep(j,w){
      if(j) cout<<" ";
      cout<<G[i][j];
    }
    cout<<'\n';
  }

  return 0;
}