console.log((args=>{
  const [[N],...task] = args.trim().split('\n').map(r=>r.split(' ').map(v=>v|0));
  task.sort((a,b)=>a[1]-b[1]);
  let t = 0;
  for ( let i = 0; i < N; i++ ) {
    t += task[i][0];
    if ( task[i][1] < t ) return 'No';
  }
  return 'Yes';
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
