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

grid = [["0" for _ in range(W)] for _ in range(H)]

for i in range(H):
    for j in range(W):
        if (i < B and j < A) or (i >= B and j >= A):
            grid[i][j] = "1"

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

grid = [["0" for _ in range(W)] for _ in range(H)]

for i in range(H):
    for j in range(W):
        if (i < B and j < A) or (i >= B and j >= A):
            grid[i][j] = "1"

for row in grid:
    print("".join(row))