//42
#include<iostream>
#include<algorithm>
#include<utility>

using namespace std;

int main(){
  for(int n;cin>>n,n;){
    pair<int,int> is[25];
    for(int i=0;i<n;i++){
      int t,b;
      cin>>t>>b;
      is[i]=make_pair(b,t);
    }
    sort(is,is+n);
    int j;
    int s=0;
    for(j=0;j<n;j++){
      s+=is[j].second;
      if(is[j].first<s)break;
    }
    cout<<((j<n)?"No":"Yes")<<endl;
  }
  return 0;
}