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

for i in range(h):
  for j in range(w):
    print( 1 if (j<a)^(i<b) else 0, end = "" )
  print() h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b for i in range(h):
  for j in range(w):
    print( 1 if (j<a)^(i<b) else 0, end = "" )
  print() i range(h) range h for j in range(w):
    print( 1 if (j<a)^(i<b) else 0, end = "" )
   j range(w) range w print( 1 if (j<a)^(i<b) else 0, end = "" ) print 1 if (j<a)^(i<b) else 0 (j<a)^(i<b) j<a j a i<b i b 1 0 end = "" end "" print() print w, a, b = map(int, input().split()) map(int, input().split()) w a, b = map(int, input().split()) map(int, input().split()) a b = map(int, input().split()) map(int, input().split()) b h, w, a, b = map(int, input().split()) map(int, input().split()) h
h, w, a, b = map(int, input().split())

for i in range(h):
  for j in range(w):
    print( 1 if (j<a)^(i<b) else 0, end = "" )
  print()