import java.util.*
fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val a = cin.nextInt()
    val b = cin.nextInt()
    val h = cin.nextInt()
    val w = cin.nextInt()
    /* 
    val minus = (b/w) * (a/h)
    val plus = a*b - minus

    val minus_value = -h*w

    if (plus + minus*minus_value > 0) {
        println("Yes")
        for (i in 0..a-1) {
            var s = ""
            for (j in 0..b-1) {
                if ((j+1) % w == 0 && (i+1) % h == 0) {
                    s += minus_value
                } else {
                    s += 1
                }
                if (j != b-1) {
                    s += " "
                }
            }
            println(s)
        }
    } else {
        println("No")
    }
    */

    var minus = -1000001
    var plus = 1000000
    if (b%w == 0 && a%h == 0) {
        println("No")
    } else {
        println("Yes")

        for (i in 0..a-1) {
            var s = ""
            for (j in 0..b-1) {
                if (i%h == 0 && j%w == 0) {
                    s += plus
                } else if ((i+1)%h == 0 && (j+1)%w == 0) {
                    s += minus
                } else {
                    s += 0
                }
                s += " "
            }
            println(s)
        }
    }
}