#include <bits/stdc++.h>
using namespace std;
const int maxn = 500 + 10;
const int mod = 1e9 + 7;
int a[maxn][maxn];
int main() {
  int H, W, h, w;
  cin >> H >> W >> h >> w;
  if (H % h == 0 and W % w == 0) return cout << "No" << endl, 0;
  cout << "Yes" << endl;
  if (H % h != 0) {
    for (int i = 1; i <= H; i++) {
      for (int j = 1; j <= W; j++) {
        if (i % h == 0)
          cout << -1000 << " ";
        else
          cout << 1000 * (h - 1) - 1 << " ";
      }
      cout << endl;
    }
  } else {
    for (int i = 1; i <= H; i++) {
      for (int j = 1; j <= W; j++) {
        if (j % w == 0)
          cout << -1000 << " ";
        else
          cout << 1000 * (w - 1) - 1 << " ";
      }
      cout << endl;
    }
  }
}
