h,w,a,b=map(int,input().split())
ans=[['0']*w for _ in range(h)]
if a==0:
  for i in range(b):
    for j in range(w):
      ans[i][j]='1'
elif b==0:
  for i in range(h):
    for j in range(a):
      ans[i][j]='1'
else:
  for i in range(b):
    for j in range(a):
      ans[i][j]='1'
  for i in range(b,h):
    for j in range(a,w):
      ans[i][j]='1'
for i in range(h):
  print(''.join(ans[i])) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b ['0']*w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) ['0']*w ['0'] '0' w ans=[['0']*w for _ in range(h)] ans [['0']*w for _ in range(h)] if a==0:
  for i in range(b):
    for j in range(w):
      ans[i][j]='1'
elif b==0:
  for i in range(h):
    for j in range(a):
      ans[i][j]='1'
else:
  for i in range(b):
    for j in range(a):
      ans[i][j]='1'
  for i in range(b,h):
    for j in range(a,w):
      ans[i][j]='1' a==0 a 0 for i in range(b):
    for j in range(w):
      ans[i][j]='1' i range(b) range b for j in range(w):
      ans[i][j]='1' j range(w) range w ans[i][j]='1' ans[i][j] [i] ans i j '1' elif b==0:
  for i in range(h):
    for j in range(a):
      ans[i][j]='1' b==0 b 0 for i in range(h):
    for j in range(a):
      ans[i][j]='1' i range(h) range h for j in range(a):
      ans[i][j]='1' j range(a) range a ans[i][j]='1' ans[i][j] [i] ans i j '1' for i in range(b):
    for j in range(a):
      ans[i][j]='1'
   i range(b) range b for j in range(a):
      ans[i][j]='1'
   j range(a) range a ans[i][j]='1' ans[i][j] [i] ans i j '1' for i in range(b,h):
    for j in range(a,w):
      ans[i][j]='1' i range(b,h) range b h for j in range(a,w):
      ans[i][j]='1' j range(a,w) range a w ans[i][j]='1' ans[i][j] [i] ans i j '1' for i in range(h):
  print(''.join(ans[i])) i range(h) range h print(''.join(ans[i])) print ''.join(ans[i]) ''.join '' join ans[i] ans i w,a,b=map(int,input().split()) map(int,input().split()) w h,w,a,b=map(int,input().split()) map(int,input().split()) h a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b ans=[['0']*w for _ in range(h)] [['0']*w for _ in range(h)] ans
h,w,a,b=map(int,input().split())
ans=[['0']*w for _ in range(h)]
if a==0:
  for i in range(b):
    for j in range(w):
      ans[i][j]='1'
elif b==0:
  for i in range(h):
    for j in range(a):
      ans[i][j]='1'
else:
  for i in range(b):
    for j in range(a):
      ans[i][j]='1'
  for i in range(b,h):
    for j in range(a,w):
      ans[i][j]='1'
for i in range(h):
  print(''.join(ans[i]))