'use strict';
(function(input){
  input=input.trim().split(/\n+/);
  const N=input.shift()-0;
  input=input.map(str=>str.split(/\s+/).map(x=>x-0));
  input.sort((a,b)=>(a[1]-b[1]));
  let sum=0
  for(let i=0;i<N;i++){
    sum+=input[i][0];
    if(sum<=input[i][1]){
      continue;
    }else{
      console.log('No');
      return;
    }
  }
  console.log('Yes');
})(require('fs').readFileSync('/dev/stdin','utf8'));
