'use strict'
const inputs = require('fs').readFileSync(0, 'utf8').split('\n')
const N = parseInt(inputs.shift(), 10)
const tasks = []
for (const input of inputs) {
  const ab = input.split(' ')
  tasks.push({a: parseInt(ab[0], 10), b: parseInt(ab[1], 10)})
}
tasks.sort((x, y) => {return x.b - y.b})
let time = 0
for (const task of tasks) {
  time += task.a
  if (time > task.b) return console.log('No')
}
return console.log('Yes')