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

Ans = [['0'] * W for _ in range(H)]

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

for i in range(H):
    for j in range(W):
        if i < B and j < A:
            Ans[i][j] = 1
        if i >= B and j >= A:
            Ans[i][j] = 1
        print(Ans[i][j], end='')
    print()