H,W,A,B=gets.split.map(&:to_i)
cnt=false
cnt=true if A==0 || B==0 || ((W%A==0 && H%B==0) && W/A == H/B)
if !cnt
    puts "No"
    exit
end

if A!=0 && B==0
    H.times do
        puts "1"*A+"0"*(W-A)
    end
    exit
elsif A==0 && B!=0
    B.times do
        puts "1"*W
    end
    (H-B).times do
        puts "0"*W
    end
    exit
elsif A==0 && B==0
    H.times do
        puts "1"*W
    end
    exit
end

H.times do |i|
    st="0"*W
    A.times do |j|
        st[(i/B)*A+j]="1"
    end
    puts st
end