H, W, A, B = map(int, input().split())
ret = [[0] * W for _ in range(H)]
for h in range(H):
    for w in range(W):
        if w < A and h < B:
            ret[h][w] = 1
        elif w >= A and h >= B:
            ret[h][w] = 1

for row in ret:
    print(''.join([str(i) for i in row])) 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 ret = [[0] * W for _ in range(H)] ret [[0] * W for _ in range(H)] for h in range(H):
    for w in range(W):
        if w < A and h < B:
            ret[h][w] = 1
        elif w >= A and h >= B:
            ret[h][w] = 1 h range(H) range H for w in range(W):
        if w < A and h < B:
            ret[h][w] = 1
        elif w >= A and h >= B:
            ret[h][w] = 1 w range(W) range W if w < A and h < B:
            ret[h][w] = 1
        elif w >= A and h >= B:
            ret[h][w] = 1 w < A and h < B w < A w A h < B h B ret[h][w] = 1 ret[h][w] [h] ret h w 1 elif w >= A and h >= B:
            ret[h][w] = 1 w >= A and h >= B w >= A w A h >= B h B ret[h][w] = 1 ret[h][w] [h] ret h w 1 for row in ret:
    print(''.join([str(i) for i in row])) row ret str(i) for i in row for i in row i row for i in row str(i) str i print(''.join([str(i) for i in row])) print ''.join([str(i) for i in row]) ''.join '' join [str(i) for i in row] H, W, A, B = map(int, input().split()) map(int, input().split()) H ret = [[0] * W for _ in range(H)] [[0] * W for _ in range(H)] ret 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
H, W, A, B = map(int, input().split())
ret = [[0] * W for _ in range(H)]
for h in range(H):
    for w in range(W):
        if w < A and h < B:
            ret[h][w] = 1
        elif w >= A and h >= B:
            ret[h][w] = 1

for row in ret:
    print(''.join([str(i) for i in row]))
