#include <bits/stdc++.h>
#define LL long long
#define ULL unsigned long long
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
using namespace std;
int main (){
      
    cin.tie(0);
    ios::sync_with_stdio(false);
      
    while( true ){
        int N;
        cin >> N;
        if( N == 0 ){ break; }
        vector<pair<int,int> > vc(N);
        for( auto& x : vc )
        {
            cin >> x.second >> x.first;
        }
        sort( vc.begin(), vc.end() );
        int count{};
        bool flag = true;
        for( auto& x : vc )
        {
            count += x.second;
            if( count > x.first )
            {
                flag = false;
            }
        }
        cout << ( flag ? "Yes" : "No" ) << endl;
    }
    return 0;
}