

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

s = [['0']*W for _ in range(H)]

for i in range(H):
    for j in range(W):
        if i>=B and j<A:
            s[i][j] = '1'
        elif i<B and j>=A:
            s[i][j] = '1'

for ss in s:
    tmps = ''.join(ss)
    print(tmps) H,W,A,B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B ['0']*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) ['0']*W ['0'] '0' W s = [['0']*W for _ in range(H)] s [['0']*W for _ in range(H)] for i in range(H):
    for j in range(W):
        if i>=B and j<A:
            s[i][j] = '1'
        elif i<B and j>=A:
            s[i][j] = '1' i range(H) range H for j in range(W):
        if i>=B and j<A:
            s[i][j] = '1'
        elif i<B and j>=A:
            s[i][j] = '1' j range(W) range W if i>=B and j<A:
            s[i][j] = '1'
        elif i<B and j>=A:
            s[i][j] = '1' i>=B and j<A i>=B i B j<A j A s[i][j] = '1' s[i][j] [i] s i j '1' elif i<B and j>=A:
            s[i][j] = '1' i<B and j>=A i<B i B j>=A j A s[i][j] = '1' s[i][j] [i] s i j '1' for ss in s:
    tmps = ''.join(ss)
    print(tmps) ss s tmps = ''.join(ss) tmps ''.join(ss) ''.join '' join ss print(tmps) print tmps H,W,A,B = map(int,input().split()) map(int,input().split()) H W,A,B = map(int,input().split()) map(int,input().split()) W A,B = map(int,input().split()) map(int,input().split()) A s = [['0']*W for _ in range(H)] [['0']*W for _ in range(H)] s tmps = ''.join(ss) ''.join(ss) tmps B = map(int,input().split()) map(int,input().split()) B


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

s = [['0']*W for _ in range(H)]

for i in range(H):
    for j in range(W):
        if i>=B and j<A:
            s[i][j] = '1'
        elif i<B and j>=A:
            s[i][j] = '1'

for ss in s:
    tmps = ''.join(ss)
    print(tmps)
