H, W, A, B = gets.split.map(&:to_i)

grid = Array.new(H) { Array.new(W, 0) }

B.times do |y|
  A.times do |x|
    grid[y][x] = 1
  end
end

B.upto(H - 1) do |y|
  A.upto(W - 1) do |x|
    grid[y][x] = 1
  end
end

puts grid.map(&:join)
