h, w, a, b = gets.split.map(&:to_i)
 
for i in 1..h do
    for j in 1..w do
        if (i <= b && j <= a) || (i > b && j > a)
            print 0
        else
            print 1
        end
    end
    print "\n"
end