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