
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

struct cell{
  int w,e;
  cell(){w=e=0;}
  cell(int a,int b){w=a;e=b;}
};
bool operator<(cell a,cell b){return a.e!=b.e?a.e<b.e:a.w<b.w;}

int main(){
  int n,a,b,i,s;
  vector<cell> v;
  while(cin>>n,n){
    v.resize(n);
    for(i=0;i<n;i++){
      cin>>a>>b;
      v[i]=cell(a,b);
    }
    sort(v.begin(),v.end());
    s=0;
    for(i=0;i<n;i++){
      s+=v[i].w;
      if(s>v[i].e){s=-1;break;}
    }
    if(~s)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}