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

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

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

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

print('\n'.join([''.join(m) for m in map]))