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

grid_1 = [0] * A + [1] * (W - A)
grid_2 = [1] * A + [0] * (W - A)

for i in range(B):
    print(*grid_1, sep='')
for i in range(H - B):
    print(*grid_2, sep='') H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B grid_1 = [0] * A + [1] * (W - A) grid_1 [0] * A + [1] * (W - A) [0] * A [0] 0 A [1] * (W - A) [1] 1 W - A W A grid_2 = [1] * A + [0] * (W - A) grid_2 [1] * A + [0] * (W - A) [1] * A [1] 1 A [0] * (W - A) [0] 0 W - A W A for i in range(B):
    print(*grid_1, sep='') i range(B) range B print(*grid_1, sep='') print *grid_1 grid_1 sep='' sep '' for i in range(H - B):
    print(*grid_2, sep='') i range(H - B) range H - B H B print(*grid_2, sep='') print *grid_2 grid_2 sep='' sep '' grid_1 = [0] * A + [1] * (W - A) [0] * A + [1] * (W - A) grid_1 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()) map(int, input().split()) H B = map(int, input().split()) map(int, input().split()) B grid_2 = [1] * A + [0] * (W - A) [1] * A + [0] * (W - A) grid_2
H, W, A, B = map(int, input().split())

grid_1 = [0] * A + [1] * (W - A)
grid_2 = [1] * A + [0] * (W - A)

for i in range(B):
    print(*grid_1, sep='')
for i in range(H - B):
    print(*grid_2, sep='')