import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt
  val w = Iterator.continually(in.readLine)
    .take(n)
    .map(_.split(" ").map(_.toInt))
    .toArray
    .sortBy(e => e(1))

  val res = w./:(0,true) { (acc, e) =>
    val c = e(0)
    val l = e(1)
    val v = acc._1 + c
    (v, acc._2 && (v <= l))
  }._2

  val ans = if(res) "Yes" else "No"
  println(ans)
}