h,w,a,b=map(int,input().split())
A=[]
for i in range(b):
    A.append(["1"]*a+["0"]*(w-a))
for i in range(h-b):
    A.append(["0"]*a+["1"]*(w-a))
for l in A:
    print("".join(l)) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b A=[] A [] for i in range(b):
    A.append(["1"]*a+["0"]*(w-a)) i range(b) range b A.append(["1"]*a+["0"]*(w-a)) A.append A append ["1"]*a+["0"]*(w-a) ["1"]*a ["1"] "1" a ["0"]*(w-a) ["0"] "0" w-a w a for i in range(h-b):
    A.append(["0"]*a+["1"]*(w-a)) i range(h-b) range h-b h b A.append(["0"]*a+["1"]*(w-a)) A.append A append ["0"]*a+["1"]*(w-a) ["0"]*a ["0"] "0" a ["1"]*(w-a) ["1"] "1" w-a w a for l in A:
    print("".join(l)) l A print("".join(l)) print "".join(l) "".join "" join l b=map(int,input().split()) map(int,input().split()) b h,w,a,b=map(int,input().split()) map(int,input().split()) h a,b=map(int,input().split()) map(int,input().split()) a A=[] [] A w,a,b=map(int,input().split()) map(int,input().split()) w
h,w,a,b=map(int,input().split())
A=[]
for i in range(b):
    A.append(["1"]*a+["0"]*(w-a))
for i in range(h-b):
    A.append(["0"]*a+["1"]*(w-a))
for l in A:
    print("".join(l))