h,w,a,b = [int(x) for x in input().split()]
for i in range(h):
  if i<h-b:
    z = "0"*a
    o = "1"*(w-a)
    print(z+o)
  else:
    z = "0"*(w-a)
    o = "1"*a
    print(o+z) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x h,w,a,b = [int(x) for x in input().split()] h [int(x) for x in input().split()] w a b for i in range(h):
  if i<h-b:
    z = "0"*a
    o = "1"*(w-a)
    print(z+o)
  else:
    z = "0"*(w-a)
    o = "1"*a
    print(o+z) i range(h) range h if i<h-b:
    z = "0"*a
    o = "1"*(w-a)
    print(z+o)
  else:
    z = "0"*(w-a)
    o = "1"*a
    print(o+z) i<h-b i h-b h b z = "0"*a z "0"*a "0" a o = "1"*(w-a) o "1"*(w-a) "1" w-a w a print(z+o) print z+o z o z = "0"*(w-a) z "0"*(w-a) "0" w-a w a o = "1"*a o "1"*a "1" a print(o+z) print o+z o z h,w,a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] h b = [int(x) for x in input().split()] [int(x) for x in input().split()] b z = "0"*a "0"*a z o = "1"*(w-a) "1"*(w-a) o z = "0"*(w-a) "0"*(w-a) z o = "1"*a "1"*a o w,a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] w a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] a
h,w,a,b = [int(x) for x in input().split()]
for i in range(h):
  if i<h-b:
    z = "0"*a
    o = "1"*(w-a)
    print(z+o)
  else:
    z = "0"*(w-a)
    o = "1"*a
    print(o+z)