H,W,a,b,=map(int,input().split())
for i in range(H):
    if i<=b-1:
        print('1'*a+'0'*(W-a))
    else:
        print('0'*a+'1'*(W-a)) 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):
    if i<=b-1:
        print('1'*a+'0'*(W-a))
    else:
        print('0'*a+'1'*(W-a)) i range(H) range H if i<=b-1:
        print('1'*a+'0'*(W-a))
    else:
        print('0'*a+'1'*(W-a)) i<=b-1 i b-1 b 1 print('1'*a+'0'*(W-a)) print '1'*a+'0'*(W-a) '1'*a '1' a '0'*(W-a) '0' W-a W a print('0'*a+'1'*(W-a)) print '0'*a+'1'*(W-a) '0'*a '0' a '1'*(W-a) '1' W-a W a 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 b,=map(int,input().split()) map(int,input().split()) b
H,W,a,b,=map(int,input().split())
for i in range(H):
    if i<=b-1:
        print('1'*a+'0'*(W-a))
    else:
        print('0'*a+'1'*(W-a))