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