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

int main(){
    while(1){
        int n;
        cin >> n;
        if(n==0) break;
        
        vector<pair<int,int> > a(n);
        for(int i=0; i<n; i++){
            int gain, limit;
            cin >> gain >> limit;
            a[i] = make_pair(limit, gain);
        }
        sort(a.begin(), a.end());

        bool ans = true;
        int amount = 0;
        for(int i=0; i<n; i++){
            amount += a[i].second;
            if(a[i].first < amount){
                ans = false;
                break;
            }
        }
        cout << (ans? "Yes" : "No") << endl;
    }
    return 0;
}

