#include <iostream>
using namespace std;

int main(){
	int H, W, h, w;
	cin >> H >> W >> h >> w;
	if(H % h == 0 && W % w == 0){
		cout << "No" << endl;
		return 0;
	}
	cout << "Yes" << endl;
	int arr[H][W];
	fill(arr[0], arr[H], -100000);
	if(H % h) for(int i = 0; i < H; i += h) for(int j = 0; j < W; j++) arr[i][j] = 100000 * h - 100001;
	else for(int i = 0; i < H; i++) for(int j = 0; j < W; j += w) arr[i][j] = 100000 * w - 100001;
	for(int i = 0; i < H; i++){
		for(int j = 0; j < W; j++){
			if(j) cout << ' ';
			cout << arr[i][j];
		}
		cout << endl;
	}
}