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

int main() {
	int n;
	while (cin >> n, n) {
		vector<P>v;
		rep(i, n) {
			int a, b; cin >> a >> b;
			v.push_back(P(b, a));
		}
		sort(v.begin(), v.end());
		int sum = 0;
		rep(i, n) {
			sum += v[i].second;
			if (sum > v[i].first) {
				puts("No");
				goto p;
			}
		}
		puts("Yes");
	p:;
	}
}