#include<iostream>
#include<vector>
#include<string>
#include<map>
using namespace std;

int main() {
	int a;
	while (cin >> a,a) {
		multimap<int, int>b;
		for (int c = 0; c < a; c++) {
			int d, e;
			cin >> d >> e;
			b.insert(pair<int, int>(e,d));
		}
		int s = 0;
		while (b.size()) {
			auto f = b.begin();
			s += (*f).second;
			if ((*f).first < s)break;
			b.erase(b.begin());
		}
		cout << ((b.size()) ? ("No") : ("Yes")) << endl;
	}
}