#include <bits/stdc++.h>

using namespace std;

int n, m, a, b;
int arr[600][600];

int main() {
    int i, j;

    scanf("%d%d%d%d",&n,&m,&a,&b);
    if (n%a==0&&m%b==0) {
        printf("No\n");
        return 0;
    }
    printf("Yes\n");
    for (i=0;i<n;i+=a) {
        for (j=0;j<m;j+=b) arr[i][j] = 1000000;
    }
    for (i=a-1;i<n;i+=a) {
        for (j=b-1;j<m;j+=b) arr[i][j] = -1000001;
    }
    for (i=0;i<n;i++) {
        for (j=0;j<m;j++) printf("%d ",arr[i][j]);
        printf("\n");
    }

    return 0;
}
