H,W,A,B = (int(x) for x in input().split())
for i in range(B):
    print(('1'*(W-A)).zfill(W))
for i in range(H-B):
    print(('1'*A).ljust(W,'0')) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x H,W,A,B = (int(x) for x in input().split()) H (int(x) for x in input().split()) W A B for i in range(B):
    print(('1'*(W-A)).zfill(W)) i range(B) range B print(('1'*(W-A)).zfill(W)) print ('1'*(W-A)).zfill(W) '1'*(W-A)).zfill '1'*(W-A) '1' W-A W A zfill W for i in range(H-B):
    print(('1'*A).ljust(W,'0')) i range(H-B) range H-B H B print(('1'*A).ljust(W,'0')) print ('1'*A).ljust(W,'0') '1'*A).ljust '1'*A '1' A ljust W '0' H,W,A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) H W,A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) W B = (int(x) for x in input().split()) (int(x) for x in input().split()) B A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) A
H,W,A,B = (int(x) for x in input().split())
for i in range(B):
    print(('1'*(W-A)).zfill(W))
for i in range(H-B):
    print(('1'*A).ljust(W,'0'))