#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <cstdio>

#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

using namespace std;

int main(){
    int N;
    
    while (1) {
        scanf("%d", &N);
        if (N == 0)
            break;
        vector< pair<int, int> > v;
        rep(i, N){
            int takara, bridge;
            scanf("%d%d", &takara, &bridge);
            v.push_back(make_pair(bridge, takara));
        }

        sort(v.begin(), v.end());

        int amount = 0;
        int success = 1;
        rep(i, N){
            amount += v[i].second;
            if ( amount > v[i].first ){
                success = 0;
                break;
            }
        }

        printf(success ? "Yes\n" : "No\n");
    }
}