#map(int, input().split())
H,W,A,B=map(int, input().split())
for i in range(B):print('1'*A+'0'*(W-A))
for i in range(H-B):print('0'*A+'1'*(W-A)) H,W,A,B=map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B for i in range(B):print('1'*A+'0'*(W-A)) i range(B) range B for i in range(H-B):print('0'*A+'1'*(W-A)) i range(H-B) range H-B H B H,W,A,B=map(int, input().split()) map(int, input().split()) H B=map(int, input().split()) map(int, input().split()) B A,B=map(int, input().split()) map(int, input().split()) A W,A,B=map(int, input().split()) map(int, input().split()) W
#map(int, input().split())
H,W,A,B=map(int, input().split())
for i in range(B):print('1'*A+'0'*(W-A))
for i in range(H-B):print('0'*A+'1'*(W-A))
