object Main{
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    loop()

    def loop(): Unit = {
      val n = sc.nextInt()
      if (n != 0) {
        val t = (1 to n).map(_ => {
          val a, b = sc.nextInt()
          (b, a)
        }).sorted

        var ans: Boolean = true
        var sum = 0
        t.foreach(ti => {
          if (ans) {
            sum += ti._2
            if (sum > ti._1) {
              ans = false
            }
          }
        })
        println(if (ans) "Yes" else "No")
        loop()
      }
    }
  }
}