object Main {
  def main(args: Array[String]) = {
    val pw = new java.io.PrintWriter(System.out)
    val sc = new java.util.Scanner(System.in)
    val h, w, a, b = sc.nextInt
    sc.close()

//    if ((w - a * 2) == (h - b * 2)) {
//      pw.println("No")
//    } else {
//      (0 until h).foreach(hh => {
//        (0 until w).foreach(ww => {
//          val range = if (b == 0) 1 else hh / b * b
//          pw.print(if (ww >= range && ww < range + a) "1" else "0")
//        })
//        pw.println()
//      })
//    }
    (0 until h).foreach(hh => {
      (0 until w).foreach(ww => {
        val range = if (b == 0) 1 else hh / b * b
        pw.print(if (ww >= range && ww < range + a) "1" else "0")
      })
      pw.println()
    })

    pw.flush()
  }
}