#include using namespace std; int main() { int H, W; cin >> H >> W; int l = 1, r = H*W; cout << "Yes" << endl; for( int i = 0; i < H; i++ ) { for( int j = 0; j < W; j++ ) { if( (i+j)%2 == 0 ) { cout << l; l++; }else { cout << r; r--; } cout << ( j == W-1 ? '\n' : ' ' ); } } }