import std.algorithm;
import std.stdio;
void main ()
{
	int rows, cols, h, w;
	while (readf (" %s %s %s %s", &rows, &cols, &h, &w) > 0)
	{
		if (rows % h == 0 && cols % w == 0)
		{
			writeln ("No");
		}
		else
		{
			writeln ("Yes");
			auto m = new int [] [] (rows, cols);
			foreach (row; 0..rows)
			{
				foreach (col; 0..cols)
				{
					m[row][col] =
					    (row % h == 0 &&
					    col % w == 0) ?
					    +999999 :
					    (row % h == h - 1 &&
					    col % w == w - 1) ?
					    -1000000 :
					    0;
				}
			}
			writefln ("%(%(%s %)\n%)", m);
		}
	}
}
