h,w,a,b=map(int,input().split())
x=''
y=''
for i in range(a):
  x+='1'
  y+='0'
for i in range(w-a):
  x+='0'
  y+='1'
for i in range(b):
  print(x)
for i in range(h-b):
  print(y) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b x='' x '' y='' y '' for i in range(a):
  x+='1'
  y+='0' i range(a) range a x+='1' x '1' y+='0' y '0' for i in range(w-a):
  x+='0'
  y+='1' i range(w-a) range w-a w a x+='0' x '0' y+='1' y '1' for i in range(b):
  print(x) i range(b) range b print(x) print x for i in range(h-b):
  print(y) i range(h-b) range h-b h b print(y) print y h,w,a,b=map(int,input().split()) map(int,input().split()) h y+='1' '1' y x+='0' '0' x w,a,b=map(int,input().split()) map(int,input().split()) w y+='0' '0' y a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b x+='1' '1' x x='' '' x y='' '' y
h,w,a,b=map(int,input().split())
x=''
y=''
for i in range(a):
  x+='1'
  y+='0'
for i in range(w-a):
  x+='0'
  y+='1'
for i in range(b):
  print(x)
for i in range(h-b):
  print(y)