H,W,A,B = map(int,input().split())
lis = [['0'] * W for i in range(H)]

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

for i in range(H):
    if i < B:
        for j in range(A,W):
            lis[i][j] = '1'
    else:
        for j in range(A):
            lis[i][j] = '1'
for i in lis:
    print(''.join(i))
