h, w, a, b = gets.chomp.split.map(&:to_i)

1.upto(h) do |i|
    1.upto(w) do |j|
        if i <= b
            print j <= a ? 0 : 1
        else
            print j <= a ? 1 : 0
        end
    end
    print "\n"
end