# coding: utf-8
# Your code here!
H,W,A,B=map(int,input().split())

ans=[]
for b in range(B):
    ans.append(["1"]*A+["0"]*(W-A))
for b in range(H-B):
    ans.append(["0"]*A+["1"]*(W-A))

for item in ans:
    print("".join(item)) 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 b in range(B):
    ans.append(["1"]*A+["0"]*(W-A)) b range(B) range B ans.append(["1"]*A+["0"]*(W-A)) ans.append ans append ["1"]*A+["0"]*(W-A) ["1"]*A ["1"] "1" A ["0"]*(W-A) ["0"] "0" W-A W A for b in range(H-B):
    ans.append(["0"]*A+["1"]*(W-A)) b range(H-B) range H-B H B ans.append(["0"]*A+["1"]*(W-A)) ans.append ans append ["0"]*A+["1"]*(W-A) ["0"]*A ["0"] "0" A ["1"]*(W-A) ["1"] "1" W-A W A for item in ans:
    print("".join(item)) item ans print("".join(item)) print "".join(item) "".join "" join item ans=[] [] ans 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
# coding: utf-8
# Your code here!
H,W,A,B=map(int,input().split())

ans=[]
for b in range(B):
    ans.append(["1"]*A+["0"]*(W-A))
for b in range(H-B):
    ans.append(["0"]*A+["1"]*(W-A))

for item in ans:
    print("".join(item))