h,w,a,b = gets.split.map(&:to_i)
ans = Array.new(h){[0]*w}

(0...h-b).each do |i|
  (0...a).each do |j|
    ans[i][j] = 1
  end
end

(h-b...h).each do |i|
  (a...w).each do |j|
    ans[i][j] = 1
  end
end

ans.each do |l|
  puts l.join
end