import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val ab = (1..n).map { Pair(sc.nextInt(), sc.nextInt()) }

  val sort = ab.sortedBy { it.second }

  var ok = true
  var sum = 0L
  for (abi in sort) {
    val a = abi.first
    val b = abi.second

    sum += a
    if (sum > b) {
      ok = false
      break
    }
  }

  if (ok) {
    println("Yes")
    return
  }

  println("No")

}