H, W, A, B = map(int, input().split())
L = [[0 for __ in range(W)] for _ in range(H)]
for i in range(B):
  for j in range(A):
    L[i][j] = 1
for i in range(B, H):
  for j in range(A, W):
    L[i][j] = 1
for i in range(H):
  for j in range(W):
    print(L[i][j], 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 [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)] L = [[0 for __ in range(W)] for _ in range(H)] L [[0 for __ in range(W)] for _ in range(H)] for i in range(B):
  for j in range(A):
    L[i][j] = 1 i range(B) range B for j in range(A):
    L[i][j] = 1 j range(A) range A L[i][j] = 1 L[i][j] [i] L i j 1 for i in range(B, H):
  for j in range(A, W):
    L[i][j] = 1 i range(B, H) range B H for j in range(A, W):
    L[i][j] = 1 j range(A, W) range A W L[i][j] = 1 L[i][j] [i] L i j 1 for i in range(H):
  for j in range(W):
    print(L[i][j], end = '')
  print() i range(H) range H for j in range(W):
    print(L[i][j], end = '')
   j range(W) range W print(L[i][j], end = '') print L[i][j] [i] L i j end = '' end '' print() print B = map(int, input().split()) map(int, input().split()) B L = [[0 for __ in range(W)] for _ in range(H)] [[0 for __ in range(W)] for _ in range(H)] L 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
H, W, A, B = map(int, input().split())
L = [[0 for __ in range(W)] for _ in range(H)]
for i in range(B):
  for j in range(A):
    L[i][j] = 1
for i in range(B, H):
  for j in range(A, W):
    L[i][j] = 1
for i in range(H):
  for j in range(W):
    print(L[i][j], end = '')
  print()