import scala.io.Source

object Main extends App {
  val in = Source.stdin.getLines
  for (line <- in; if line != "0 0") {
    val nk = line.split(' ').map(_.toInt)
    val n = nk(0)
    val s = in.next.split(' ').map(_.toInt)
    val b: Seq[Array[Int]] = in.take(n).map(x => x.split(' ').map(_.toInt)).toSeq
    if (b.foldLeft(s)(subtract).exists(x => x < 0)) {
      println("No")
    } else {
      println("Yes")
    }
  }

  def subtract(a: Array[Int], b: Array[Int]): Array[Int] = {
    a.zip(b).map(x => x._1 - x._2)
  }
}

