#include<iostream>
#include<utility>
#include<algorithm>
using namespace std;
int n;
pair<int, int> island[30];
int main() {
	while(cin >> n,n!=0) {
		for (int i = 0; i < n;i++) {
			cin >> island[i].second >> island[i].first;
		}
		sort(island, island + n);
		//1,3,4,5
		int weight = 0;
		bool f = true;
		for (int i = 0; i < n;i++) {
			weight += island[i].second;
			if (weight > island[i].first){
				f = false;
				break;
			}
		}
		if (f) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
	}
	return 0;
}
