
fun main(args: Array<String>) {
    val (H, W, A, B) = readLine()!!.split(" ").map {s -> s.toInt()}

    val res = Array<Array<Int>>(H) { i -> Array(W) { j -> when {
            j < A && i < B -> 0
            j >= A && i < B -> 1
            j < A -> 1
            else -> 0
        }
    } }

    for (r in res) {
        println(r.joinToString(""))
    }
}