const main = (inputs) => {
  var N = inputs[0]-0;
  var list = [];
  for(var i=1;i<=N;i++){
    list.push({
      a: inputs[i].split(" ")[0]-0,
      b: inputs[i].split(" ")[1]-0,
    });
  }
  list.sort((a,b)=>{
    return a.b-b.b;
  });
  var ans = true;
  var tmp = 0;
  list.forEach(obj=>{
    tmp += obj.a;
    if(tmp>obj.b) ans=false;
  });
  console.log(ans?"Yes":"No");
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
