#include <iostream>
#include <map>
using namespace std;
typedef pair<int,int> P;

int main(){
     int N;
     while(cin>>N,N){
     multimap<int,int> s;
     int tsum=0;
     for(int i=0;i<N;i++){
	  int t,b;
	  cin>>t>>b;
	  tsum+=t;
	  s.insert(P(b,t));
     }
     map<int,int>::reverse_iterator ritr=s.rbegin();
     while(ritr!=s.rend()){
	  if(ritr->first<tsum)break;
	  tsum-=(ritr->second);
	  ritr++;
     }
     
     if(tsum==0)cout<<"Yes"<<endl;
     else cout<<"No"<<endl;
     }
}