#include <bits/stdc++.h>
using namespace std;
using ll = long long;

ll H, W, h, w;

int main() {
    scanf("%lld %lld %lld %lld", &H, &W, &h, &w);
    if (h == 1 && w == 1) {
        printf("No\n");
        return 0;
    }
    ll p = 999999999 / (h*w-1), k = -p*(h*w-1)-1;
    ll c = (H/h) * (W/w);
    if (c*k + (H*W-c)*p <= 0) printf("No\n");
    else {
        printf("Yes\n");
        for (ll r = 1; r <= H; r++) {
            for (ll c = 1; c <= W; c++) printf("%lld ", r % h == 0 && c % w == 0 ? k:p);
            printf("\n");
        }
    }
}