#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;

#define all(a)  (a).begin(),(a).end()
#define loop(i,a,b) for(int i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)

int main(){
    int n;
    while(cin >> n, n){
        vector<pair<int, int> > v(n);
        rep(i, n)cin >> v[i].second >> v[i].first;
        sort(all(v));
        int m = 0;
        bool is = true;
        rep(i, n){
            m += v[i].second;
            if(v[i].first < m){is = false; break;}
        }
        cout << (is?"Yes":"No") << endl;
    }
}