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