H,W,A,B = map(int, input().split())
ans = [0]*H
for i in range(H):
  if i<B:
    ans[i] = '0'*A+'1'*(W-A)
  else:
    ans[i] = '1'*A+'0'*(W-A)
print('\n'.join(ans)) H,W,A,B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B ans = [0]*H ans [0]*H [0] 0 H for i in range(H):
  if i<B:
    ans[i] = '0'*A+'1'*(W-A)
  else:
    ans[i] = '1'*A+'0'*(W-A) i range(H) range H if i<B:
    ans[i] = '0'*A+'1'*(W-A)
  else:
    ans[i] = '1'*A+'0'*(W-A) i<B i B ans[i] = '0'*A+'1'*(W-A) ans[i] ans i '0'*A+'1'*(W-A) '0'*A '0' A '1'*(W-A) '1' W-A W A ans[i] = '1'*A+'0'*(W-A) ans[i] ans i '1'*A+'0'*(W-A) '1'*A '1' A '0'*(W-A) '0' W-A W A print('\n'.join(ans)) print '\n'.join(ans) '\n'.join '\n' join ans ans = [0]*H [0]*H ans B = map(int, input().split()) map(int, input().split()) B H,W,A,B = map(int, input().split()) map(int, input().split()) H W,A,B = map(int, input().split()) map(int, input().split()) W A,B = map(int, input().split()) map(int, input().split()) A
H,W,A,B = map(int, input().split())
ans = [0]*H
for i in range(H):
  if i<B:
    ans[i] = '0'*A+'1'*(W-A)
  else:
    ans[i] = '1'*A+'0'*(W-A)
print('\n'.join(ans))