#include<bits/stdc++.h>

using namespace std;

const int N=505,inf=1e9;

int n,m,h,w;

int main(){
	scanf("%d%d%d%d",&n,&m,&h,&w);
	if(n%h==0&&m%w==0)puts("No"),exit(0);
	puts("Yes");
	for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)printf("%d%c",i%h||j%w?4000:3999-4000*w*h," \n"[j==m]);
	return 0;
}