H, W, A, B = map(int, input().split())
board1 = [[0] * A + [1] * (W - A) for _ in range(B)]
for l in board1:
    print(*l, sep='')
board2 = [[1] * A + [0] * (W - A) for _ in range(H - B)]
for l in board2:
    print(*l, sep='') H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B [0] * A + [1] * (W - A) for _ in range(B) for _ in range(B) _ range(B) range B for _ in range(B) [0] * A + [1] * (W - A) [0] * A [0] 0 A [1] * (W - A) [1] 1 W - A W A board1 = [[0] * A + [1] * (W - A) for _ in range(B)] board1 [[0] * A + [1] * (W - A) for _ in range(B)] for l in board1:
    print(*l, sep='') l board1 print(*l, sep='') print *l l sep='' sep '' [1] * A + [0] * (W - A) for _ in range(H - B) for _ in range(H - B) _ range(H - B) range H - B H B for _ in range(H - B) [1] * A + [0] * (W - A) [1] * A [1] 1 A [0] * (W - A) [0] 0 W - A W A board2 = [[1] * A + [0] * (W - A) for _ in range(H - B)] board2 [[1] * A + [0] * (W - A) for _ in range(H - B)] for l in board2:
    print(*l, sep='') l board2 print(*l, sep='') print *l l sep='' sep '' board2 = [[1] * A + [0] * (W - A) for _ in range(H - B)] [[1] * A + [0] * (W - A) for _ in range(H - B)] board2 H, W, A, B = map(int, input().split()) map(int, input().split()) H B = map(int, input().split()) map(int, input().split()) B A, B = map(int, input().split()) map(int, input().split()) A W, A, B = map(int, input().split()) map(int, input().split()) W board1 = [[0] * A + [1] * (W - A) for _ in range(B)] [[0] * A + [1] * (W - A) for _ in range(B)] board1
H, W, A, B = map(int, input().split())
board1 = [[0] * A + [1] * (W - A) for _ in range(B)]
for l in board1:
    print(*l, sep='')
board2 = [[1] * A + [0] * (W - A) for _ in range(H - B)]
for l in board2:
    print(*l, sep='')
