let arr = readLine()!.characters.split{$0 == " "}.map{ Int(String($0))! }

let h = arr[0]
let w = arr[1]
let a = arr[2]
let b = arr[3]

if w-a < h-b {
  print(-1)
} else {
  for r in 0..<h {
    var row = [Int]()
    for c in 0..<w {
      if c<r+a-w {
        row.append(1)
      } else if c<r {
        row.append(0)
      } else if c>=r && c < r+a {
        row.append(1)
      } else {
        row.append(0)
      }
    }
    let str = row.map { x in return String(x) + " " }
    let reduced = String(str.reduce("", combine: +).characters.dropLast())
    print(reduced)
  }
}