'use strict'
function main(input) {
  input = input.trim().split('\n')
  const N = Number(input.shift())
  input = input.map(row => row.split(' ').map(n => n - 0)).sort((a, b) => a[1] - b[1])

  let done = 0
  for (let i = 0; i < N; i++) {
    done += input[i][0]
    if (done > input[i][1]) return console.log('No')
  }
  console.log('Yes')
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
