H,W,A,B = map(int,input().split())
ans = [[0]*W for i in range(H)]
for i in range(A):
  for j in range(B):
    ans[j][i] = 1

for i in range(A,W):
  for j in range(B,H):
    ans[j][i] = 1

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

for i in range(A,W):
  for j in range(B,H):
    ans[j][i] = 1

for l in ans:
  for i in l:
    print(i,end="")
  print()