H,W,A,B=map(int,input().split())
ans = [['0'] * W for _ in range(H)]
for y in range(H):
    for x in range(W):
        if x < A and y < B:
            ans[y][x] = '1'
        elif x >= A and y >= B:
            ans[y][x] = '1'
for a in ans:
    print(''.join(a)) 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 y in range(H):
    for x in range(W):
        if x < A and y < B:
            ans[y][x] = '1'
        elif x >= A and y >= B:
            ans[y][x] = '1' y range(H) range H for x in range(W):
        if x < A and y < B:
            ans[y][x] = '1'
        elif x >= A and y >= B:
            ans[y][x] = '1' x range(W) range W if x < A and y < B:
            ans[y][x] = '1'
        elif x >= A and y >= B:
            ans[y][x] = '1' x < A and y < B x < A x A y < B y B ans[y][x] = '1' ans[y][x] [y] ans y x '1' elif x >= A and y >= B:
            ans[y][x] = '1' x >= A and y >= B x >= A x A y >= B y B ans[y][x] = '1' ans[y][x] [y] ans y x '1' for a in ans:
    print(''.join(a)) a ans print(''.join(a)) print ''.join(a) ''.join '' join a B=map(int,input().split()) map(int,input().split()) B W,A,B=map(int,input().split()) map(int,input().split()) W A,B=map(int,input().split()) map(int,input().split()) A ans = [['0'] * W for _ in range(H)] [['0'] * W for _ in range(H)] ans H,W,A,B=map(int,input().split()) map(int,input().split()) H
H,W,A,B=map(int,input().split())
ans = [['0'] * W for _ in range(H)]
for y in range(H):
    for x in range(W):
        if x < A and y < B:
            ans[y][x] = '1'
        elif x >= A and y >= B:
            ans[y][x] = '1'
for a in ans:
    print(''.join(a))