H,W,A,B = map(int, input().split())

if A == 0 and B == 0:
  for _ in range(H):
    print("".join("0" * W))
  exit(0)
  
ANS = []
cnt = B
roll = 0
for i in range(B):
  wk = ["1"] * A + ["0"] * (W-A)
  ANS.append(wk)
for i in range(H-B):
  wk = ["0"] * A + ["1"] * (W-A)
  ANS.append(wk)
  
for ans in ANS:
  print("".join(ans))
 H,W,A,B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B if A == 0 and B == 0:
  for _ in range(H):
    print("".join("0" * W))
  exit(0)
   A == 0 and B == 0 A == 0 A 0 B == 0 B 0 for _ in range(H):
    print("".join("0" * W))
   _ range(H) range H print("".join("0" * W)) print "".join("0" * W) "".join "" join "0" * W "0" W exit(0) exit 0 ANS = [] ANS [] cnt = B cnt B roll = 0 roll 0 for i in range(B):
  wk = ["1"] * A + ["0"] * (W-A)
  ANS.append(wk) i range(B) range B wk = ["1"] * A + ["0"] * (W-A) wk ["1"] * A + ["0"] * (W-A) ["1"] * A ["1"] "1" A ["0"] * (W-A) ["0"] "0" W-A W A ANS.append(wk) ANS.append ANS append wk for i in range(H-B):
  wk = ["0"] * A + ["1"] * (W-A)
  ANS.append(wk)
   i range(H-B) range H-B H B wk = ["0"] * A + ["1"] * (W-A) wk ["0"] * A + ["1"] * (W-A) ["0"] * A ["0"] "0" A ["1"] * (W-A) ["1"] "1" W-A W A ANS.append(wk) ANS.append ANS append wk for ans in ANS:
  print("".join(ans)) ans ANS print("".join(ans)) print "".join(ans) "".join "" join ans 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 roll = 0 0 roll A,B = map(int, input().split()) map(int, input().split()) A cnt = B B cnt wk = ["1"] * A + ["0"] * (W-A) ["1"] * A + ["0"] * (W-A) wk ANS = [] [] ANS wk = ["0"] * A + ["1"] * (W-A) ["0"] * A + ["1"] * (W-A) wk
H,W,A,B = map(int, input().split())

if A == 0 and B == 0:
  for _ in range(H):
    print("".join("0" * W))
  exit(0)
  
ANS = []
cnt = B
roll = 0
for i in range(B):
  wk = ["1"] * A + ["0"] * (W-A)
  ANS.append(wk)
for i in range(H-B):
  wk = ["0"] * A + ["1"] * (W-A)
  ANS.append(wk)
  
for ans in ANS:
  print("".join(ans))

