str = gets.split
H,W,A,B = str[0].to_i, str[1].to_i, str[2].to_i, str[3].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
            print " "
        else
            print 1
            print " "
        end
    end
    puts
end