h, w, x, y = gets.split.map(&:to_i)
x = h - x if x > w / 2
y = w - y if y > h / 2
if x >= y
  a = [1] * x + [0] * (w - x)
  b = []
  h.times do
    b << a
    a = a[-1 - y + 1, y] + a[0, w - y]
  end
  b.each do |e|
    puts e.join('')
  end
else
  a = [1] * y + [0] * (h - y)
  b = []
  w.times do
    b << a
    a = a[-1 - x + 1, x] + a[0, h - x]
  end
  b.transpose.each do |e|
    puts e.join('')
  end
end