#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>

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;
	
	for(int i = 1; i <= H; i++){
		for(int j = 1; j <= W; j++){
			if(i % h == 0 && j % w == 0){
				cout << -((h * w - 1) * 1000 + 1);
			}else{
				cout << 1000;
			}
			if(j != W){
				cout << " ";
			}
		}
		cout << endl;
	}
	
	return 0;
}