import scala.io.StdIn._

object Main extends App {

  val n = readInt()
  val ab = Array.fill(n)(readLine().split(" ").map(_.toInt))
    .map(list => (list(0), list(1)))
    .sortBy(_._2)

  def solve(): String = {
    ab.foldLeft(0L) { case(acc, (a,b)) =>
      if(acc+a > b) return "No"
      else acc+a
    }
    "Yes"
  }

  println(solve())

}

