'use strict'

function Main(input) {
  const N = Number(input.split("\n")[0])
  const list = input.split("\n").slice(1).map(x => x.split(" ").map(x => Number(x)))
  list.sort((a, b) => a[1] < b[1] ? -1 : 1)
  
  let now = 0
  for(const job of list) {
    now += job[0]
    if(now > job[1]) {
      console.log("No")
      return
    }
  }
  console.log("Yes")

}
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim())