'use strict'

function main(input) {
  input = input.split(/\n/)
  const N = Number(input[0])
  const jobs = input
    .slice(1)
    .map(v => v.split(' ').map(v => ~~v))
    .sort((a, b) => {
      return a[1] > b[1] ? 1 : -1
    })
  let time = 0
  let i = 0
  // console.log(jobs[0], jobs[1], jobs[2], jobs[3], jobs[4])

  while (true) {
    // time <= jobs[i][1]
    time += jobs[i][0]
    if (time > jobs[i][1]) {
      console.log('No')
      return false
    }
    i++
    if (i > N - 1) {
      console.log('Yes')
      return false
    }
  }
  // console.log('Yes')
  // console.log(jobs[0], jobs[1], jobs[2], jobs[3], jobs[4])
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
