H,W,A,B=map(int,input().split())
ans=[]
for h in range(H):
    if h<B:
        ans.append("0"*A+"1"*(W-A))
    else:
        ans.append("1"*A+"0"*(W-A))

for a in ans:
    print(a) H,W,A,B=map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B ans=[] ans [] for h in range(H):
    if h<B:
        ans.append("0"*A+"1"*(W-A))
    else:
        ans.append("1"*A+"0"*(W-A)) h range(H) range H if h<B:
        ans.append("0"*A+"1"*(W-A))
    else:
        ans.append("1"*A+"0"*(W-A)) h<B h B ans.append("0"*A+"1"*(W-A)) ans.append ans append "0"*A+"1"*(W-A) "0"*A "0" A "1"*(W-A) "1" W-A W A ans.append("1"*A+"0"*(W-A)) ans.append ans append "1"*A+"0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A for a in ans:
    print(a) a ans print(a) print 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 ans=[] [] ans B=map(int,input().split()) map(int,input().split()) B A,B=map(int,input().split()) map(int,input().split()) A
H,W,A,B=map(int,input().split())
ans=[]
for h in range(H):
    if h<B:
        ans.append("0"*A+"1"*(W-A))
    else:
        ans.append("1"*A+"0"*(W-A))

for a in ans:
    print(a)