#include<bits/stdc++.h>
#define rep(i, a) for (int i = 0; i < (a); i++)
using namespace std;

int main(){
	int n;
	int a, b;
	int i;
	while(1){
		cin >> n;
		if(n == 0) break;

		vector< pair<int, int> > v;
		for(i = 0; i < n; i++){
			cin >> a >> b;
			v.push_back(make_pair(b, a));
		}

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

		int sum = 0;
		int flag = 1;
		for(i = 0; i < n; i++){
			sum += v[i].second;
			if(sum > v[i].first){
				flag = 0;
				break;
			}
		}

		if(flag){
			cout << "Yes" << endl;
		}else{
			cout << "No" << endl;
		}
	}
}

