H, W, A, B = map(int, input().split())
ans = [["0" for _ in range(W)] for _ in range(H)]

for i in range(H):
  if i + 1 <= B:
    ans[i][A:] = ["1"] * (W-A)
  else:
    ans[i][:A] = ["1"] * A

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

for i in range(H):
  if i + 1 <= B:
    ans[i][A:] = ["1"] * (W-A)
  else:
    ans[i][:A] = ["1"] * A

for j in ans:
  print("".join(j))