H,W,A,B = map(int,input().split())
ans = []
for i in range(B):
    a = min(A,W-A)
    ans.append('0'*a + '1'*(W-a))
for i in range(H-B):
    a = min(A,W-A)
    ans.append('1'*a + '0'*(W-a))
print(*ans, sep='\n') 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 i in range(B):
    a = min(A,W-A)
    ans.append('0'*a + '1'*(W-a)) i range(B) range B a = min(A,W-A) a min(A,W-A) min A W-A W A 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 for i in range(H-B):
    a = min(A,W-A)
    ans.append('1'*a + '0'*(W-a)) i range(H-B) range H-B H B a = min(A,W-A) a min(A,W-A) min A 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 print(*ans, sep='\n') print *ans ans sep='\n' sep '\n' W,A,B = map(int,input().split()) map(int,input().split()) W a = min(A,W-A) min(A,W-A) a a = min(A,W-A) min(A,W-A) a A,B = map(int,input().split()) map(int,input().split()) A ans = [] [] ans H,W,A,B = map(int,input().split()) map(int,input().split()) H B = map(int,input().split()) map(int,input().split()) B
H,W,A,B = map(int,input().split())
ans = []
for i in range(B):
    a = min(A,W-A)
    ans.append('0'*a + '1'*(W-a))
for i in range(H-B):
    a = min(A,W-A)
    ans.append('1'*a + '0'*(W-a))
print(*ans, sep='\n')