h, w, a, b = gets.strip.split("\s").map(&:to_i)

if a == 0
  b.times do
    w.times do
      print 0
    end
    puts
  end
  (h-b).times do
    w.times do
      print 1
    end
    puts
  end
elsif b == 0
  h.times do
    a.times do
      print 0
    end
    (w-a).times do
      print 1
    end
    puts
  end
elsif ((w*b)/a == h) && ((w*b)/a % h == 0) && (a % b == 0)
  (h - b + 1).times do |i|
    (i * (a/b)).times do
      print 1
    end
    a.times do
      print 0
    end
    (w - i*(a/b) - a).times do
      print 1
    end
    puts
  end
  (b - 1).times do |i|
    (a/b * (i+1)).times do
      print 0
    end
    (w-a).times do
      print 1
    end
    (a - (a/b * (i+1))).times do
      print 0
    end
    puts
  end
else
  x = a
  a = b
  b = x
  if ((w*b)/a == h) && ((w*b)/a % h == 0) && (a % b == 0)
    (h - b + 1).times do |i|
      (i * (a/b)).times do
        print 1
      end
      a.times do
        print 0
      end
      (w - i*(a/b) - a).times do
        print 1
      end
      puts
    end
    (b - 1).times do |i|
      (a/b * (i+1)).times do
        print 0
      end
      (w-a).times do
        print 1
      end
      (a - (a/b * (i+1))).times do
        print 0
      end
      puts
    end
  else
    puts 'No'
  end
end