H,W,A,B=gets.split.map(&:to_i)
cnt="No"
cnt=1 if H==W && A==1 && B==1
cnt=2 if A==0
cnt=3 if B==0
cnt=4 if A==0 && B==0


if cnt=="No"
    puts "No"
    exit
end

if cnt==1
    H.times do |i|
        s="0"*W
        s[i]="1"
        puts s
    end
elsif cnt==3
    H.times do
        puts "1"*A+"0"*(W-A)
    end
elsif cnt==2
    B.times do
        puts "1"*W
    end
    (H-B).times do
        puts "0"*W
    end
elsif cnt==4
    H.times do
        puts "1"*W
    end
end
