ans = Array.new
mesi = Array.new
loop do
  num = gets.chomp!.split(/\s/)
  if num[0].to_i == 0 && num[1].to_i == 0
    break
  end
  data = gets.chomp!.split(/\s/)
  num[0].to_i.times do |i|
    mesi[i] = gets.chomp!.split(/\s/)
  end
  num[0].to_i.times do |i|
    num[1].to_i.times do |j|
      mesi[i][j] = mesi[i][j].to_i
    end
  end
  num[1].to_i.times do |i|
    ans[i] = 0
  end
  num[1].to_i.times do |i|
    num[0].to_i.times do |j|
      ans[i] = ans[i] + mesi[j][i]
    end
  end
  point = 0
  num[1].to_i.times do |i|
    if data[i].to_i < ans[i]
      point = 1
    end
  end
  if point == 1
    puts "NO"
  else
    puts "YES"
  end
end