#include <iostream>
#include <map>

using namespace std;

int main() {
    int n;
    multimap<int,int> mp;
    while ( cin>>n,n!=0 ) {
        mp.clear();
        for ( int i=0; i<n; i++ ) {
            int a,b;
            cin>>a>>b;
            mp.insert(make_pair(b,a));
        }
        int s=0;
        bool f=true;
        for ( auto p: mp ) {
            s+=p.second;
            if ( p.first<s ) {
                f=false;
            }
        }
        cout<<(f?"Yes":"No")<<endl;
    }
}