import scala.annotation.tailrec
import scala.collection.mutable
import scala.io.StdIn._
object Main extends App{


  val n = readInt()
  val tasks = List.tabulate(n){_ ⇒
    val Array(a, b) = readLine.trim.split(' ').map(_.toLong)
    Task(a, b)
  }.sortBy(_.limit)
  println(if (canDo(tasks, 0)) "Yes" else "No")
  @tailrec def canDo(tasks: List[Task], currentTime: Long): Boolean = {
    tasks match {
      case Nil ⇒ true
      case h::t if h.limit >= currentTime + h.cost => canDo(t, currentTime + h.cost)
      case _ ⇒ false
    }
  }
  case class Task(cost: Long, limit: Long)

}
