function main(input) {
  const lines = input.split('\n');
  const N = parseInt(lines.shift());

  const tasks = [];
  for(var i=0; i<N; i++){
    var tmp = lines.shift().split(' ').map( x => parseInt(x) );
    tasks.push(tmp);
  }

//  tasks.sort( (a,b) => a[1]-b[1] );
  tasks.sort(function(a, b){
    return a[1]- b[1];
  });

  var result = 'Yes';
  var sum = 0;

  for(var i=0; i < N; i++){
    sum += Number(tasks[i][0]);
    if(sum > Number(tasks[i][1])){
      result = 'No';
      break;
    }
  }
  console.log(result);
 }

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