h,w,a,b = map(int, input().split())

s = [['0' for j in range(w)] for i in range(h)]

for i in range(b):
  for j in range(a,w):
    s[i][j] = '1'

for i in range(b,h):
  for j in range(a):
    s[i][j] = '1'

for i in range(h):
  print (''.join(s[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' for j in range(w)] for i in range(h) for i in range(h) i range(h) range h for i in range(h) ['0' for j in range(w)] s = [['0' for j in range(w)] for i in range(h)] s [['0' for j in range(w)] for i in range(h)] for i in range(b):
  for j in range(a,w):
    s[i][j] = '1' i range(b) range b for j in range(a,w):
    s[i][j] = '1' j range(a,w) range a w s[i][j] = '1' s[i][j] [i] s i j '1' for i in range(b,h):
  for j in range(a):
    s[i][j] = '1' i range(b,h) range b h for j in range(a):
    s[i][j] = '1' j range(a) range a s[i][j] = '1' s[i][j] [i] s i j '1' for i in range(h):
  print (''.join(s[i])) i range(h) range h print (''.join(s[i])) print ''.join(s[i]) ''.join '' join s[i] s i a,b = map(int, input().split()) map(int, input().split()) a s = [['0' for j in range(w)] for i in range(h)] [['0' for j in range(w)] for i in range(h)] s h,w,a,b = map(int, input().split()) map(int, input().split()) h w,a,b = map(int, input().split()) map(int, input().split()) w b = map(int, input().split()) map(int, input().split()) b
h,w,a,b = map(int, input().split())

s = [['0' for j in range(w)] for i in range(h)]

for i in range(b):
  for j in range(a,w):
    s[i][j] = '1'

for i in range(b,h):
  for j in range(a):
    s[i][j] = '1'

for i in range(h):
  print (''.join(s[i]))
