#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

class data
{
public:
    int a, b;
    bool operator<(const data& d) const{
        return b < d.b;
    }
};

int main()
{
    for(;;){
        int n;
        cin >> n;
        if(n == 0)
            break;
        vector<data> d(n);
        for(int i=0; i<n; ++i)
            cin >> d[i].a >> d[i].b;
        sort(d.begin(), d.end());

        int total = 0;
        bool ok = true;
        for(int i=0; i<n; ++i){
            total += d[i].a;
            if(total > d[i].b){
                ok = false;
                break;
            }
        }
        if(ok)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
}