"use strict";
function Main(input) {
  const args = input.split('\n');
  const N = parseInt(args.shift());
  const AB = args.map(m => m.split(' ')
  .map(mm => parseInt(mm)))
  .sort((a, b) => a[1] - b[1]);
  let time = 0;
  for (let i = 0; i < N; i++) {
    let task = AB.shift();
    time += task[0];
    if (task[1] < time) {
      console.log('No');
      return;
    }
  }
  console.log('Yes');

}

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