#define _CRT_SECURE_NO_WARNINGS

#include<fstream>
#include<iostream>
#include<string>
#include<iomanip>
#include<list>
#include<math.h>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>

using namespace std;

int main(int argc, char **argv){
	int n;
	vector<pair<int, int>> v;
	pair<int, int> p;
	while (cin >> n && n > 0){
		v.clear();
		for (int i = 0; i < n; i++) {
			cin >> p.second >> p.first;
			v.push_back(p);
		}

		sort(v.begin(), v.end());
		int weight = 0;
		int i;
		for (i = 0; i < v.size(); i++) {
			weight += v[i].second;
			if (weight > v[i].first) {
				cout << "No" << endl;
				break;
			}
		}
		if (i == v.size()) {
			cout << "Yes" << endl;
		}
	}
	return 0;
}