#include <bits/stdc++.h>
#define loop(times) for(int i=0;i<(times);i++)

using namespace std;

int main() {
    while(1<2){
        int n,sum=0;
        cin >>n;
        
        if(n==0)break;
   
        vector<pair<int,int> > tre(n);
        loop(n)cin>>tre.at(i).second>>tre.at(i).first;
        sort(tre.begin(),tre.end());
        loop(n){
            sum+=tre.at(i).second;
            if(sum>tre.at(i).first){
                cout<<"No"<<endl;
                break;
            }
            if(i==n-1){
                cout<<"Yes"<<endl;
                break;
            }
    }
    }
}
