fun main(args:Array<String>) {
	val (h,w,b,a) = readLine()!!.split(" ").map {it.toInt()}
	val aa = Math.min(a,h-a)
	val bb = Math.min(b,w-b)

	val r = Array(h) {CharArray(w) {'0'}}

	for(i in 0 until aa) {
		for(j in 0 until bb) {
			r[i][j] = '1'
		}
	}
	for(i in aa until h) {
		for(j in bb until w) {
			r[i][j] = '1'
		}
	}

	r.forEach {println(it)}
}
