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

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

for i in range(H):
    for j in range(W):
        if j<A and i<B:
            s[i][j]=0
        elif j<A:
            s[i][j]=1
        elif i<B:
            s[i][j]=1
        else:
            s[i][j]=0
ans=[]
for i in range(H):
    tmp=""
    for j in range(W):
        tmp=tmp+str(s[i][j])
    ans.append(tmp)
for i in range(H):
    print(ans[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 for _ in range(W)]for i in range(H) for i in range(H) i range(H) range H for i in range(H) [0 for _ in range(W)] s=[[0 for _ in range(W)]for i in range(H)] s [[0 for _ in range(W)]for i in range(H)] for i in range(H):
    for j in range(W):
        if j<A and i<B:
            s[i][j]=0
        elif j<A:
            s[i][j]=1
        elif i<B:
            s[i][j]=1
        else:
            s[i][j]=0 i range(H) range H for j in range(W):
        if j<A and i<B:
            s[i][j]=0
        elif j<A:
            s[i][j]=1
        elif i<B:
            s[i][j]=1
        else:
            s[i][j]=0 j range(W) range W if j<A and i<B:
            s[i][j]=0
        elif j<A:
            s[i][j]=1
        elif i<B:
            s[i][j]=1
        else:
            s[i][j]=0 j<A and i<B j<A j A i<B i B s[i][j]=0 s[i][j] [i] s i j 0 elif j<A:
            s[i][j]=1
         j<A j A s[i][j]=1 s[i][j] [i] s i j 1 elif i<B:
            s[i][j]=1
         i<B i B s[i][j]=1 s[i][j] [i] s i j 1 s[i][j]=0 s[i][j] [i] s i j 0 ans=[] ans [] for i in range(H):
    tmp=""
    for j in range(W):
        tmp=tmp+str(s[i][j])
    ans.append(tmp) i range(H) range H tmp="" tmp "" for j in range(W):
        tmp=tmp+str(s[i][j])
     j range(W) range W tmp=tmp+str(s[i][j]) tmp tmp+str(s[i][j]) tmp str(s[i][j]) str s[i][j] [i] s i j ans.append(tmp) ans.append ans append tmp for i in range(H):
    print(ans[i]) i range(H) range H print(ans[i]) print ans[i] ans i ans=[] [] ans W,A,B=map(int,input().split()) map(int,input().split()) W tmp="" "" tmp H,W,A,B=map(int,input().split()) map(int,input().split()) H s=[[0 for _ in range(W)]for i in range(H)] [[0 for _ in range(W)]for i in range(H)] s A,B=map(int,input().split()) map(int,input().split()) A B=map(int,input().split()) map(int,input().split()) B tmp=tmp+str(s[i][j]) tmp+str(s[i][j]) tmp
H,W,A,B=map(int,input().split())

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

for i in range(H):
    for j in range(W):
        if j<A and i<B:
            s[i][j]=0
        elif j<A:
            s[i][j]=1
        elif i<B:
            s[i][j]=1
        else:
            s[i][j]=0
ans=[]
for i in range(H):
    tmp=""
    for j in range(W):
        tmp=tmp+str(s[i][j])
    ans.append(tmp)
for i in range(H):
    print(ans[i])