object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val N = sc.nextInt
    val jobs = new Array[(Long, Long)](N)
    for (i <- 0 until N) {
      val a, b = sc.nextLong()
      jobs(i) = (a, b)
    }
    val sorted = jobs.sortBy(_._2)

    var time = 0L
    for (job <- sorted) {
      val (a, b) = job
      time += a
      if (b < time) {
        println("No")
        sys.exit
      }
    }

    println("Yes")
  }
}