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

G = [['0'] * W for _ in range(H)]
for h in range(H - B):
    for w in range(W - A):
        G[h][w] = '1'
for h in range(H - B, H):
    for w in range(W - A, W):
        G[h][w] = '1'

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

G = [['0'] * W for _ in range(H)]
for h in range(H - B):
    for w in range(W - A):
        G[h][w] = '1'
for h in range(H - B, H):
    for w in range(W - A, W):
        G[h][w] = '1'

for row in G:
    print(''.join(row))

