'use strict'

const main = (INPUT) => {
  const input = INPUT.split('\n').map(v => v.split(' ').map(n => Number(n)))
  const N = input[0]
  input.shift()
  input.sort((a, b) => a[1] - b[1])
  let time = 0
  let ans = 'Yes'
  for (let i = 0; i < input.length; i++) {
    time += input[i][0]
    if (time > input[i][1]) {
      ans = 'No'
    }
  }
  console.log(ans)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
