function main(input) {
  lines = input.split('\n');
  var N = Number(lines.shift);
  var tasks = [];
  for(var i=1; i <= N; i++){
    var tmp = input[i].split(" ");
    tasks.push(tmp);
  }

  tasks.sort((a, b) => 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"));
