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