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

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

for i in range(H):
    row = []
    for j in range(W):
        if ((i < B and j < A) or (B <= i and A <= j)):
            row.append('0')
        else:
            row.append('1')
    print(''.join(row))
