#include <iostream>
#include <string>
#include <math.h>
#include <vector>
#include<stdio.h>
#include <functional>
#include<algorithm>
#define PI 3.14159265
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define SZ(x) ((int)(x).size())

using namespace std;



int main() {
	int n,flag;
	int me = 0;
	ll mi, now;
	int w[25], v[25];
	while (1) {
		me = 0;
		cin >> n;
		if (n == 0) break;
		
		REP(i, n) {
			
			cin >> w[i] >> v[i];
		}
		REP (j,n) {
			mi = 100000000;
			REP(i, n) {
				if (v[i] >= 0) {
					if (mi > v[i]) {
						mi = v[i];
						now = i;
					}
				}
			}
			if (me + w[now] > v[now]) {
				cout << "No" << endl;
				flag = 0;
				break;
			}
			else {
				me = me + w[now];
				v[now] = -1;
				flag = 1;
			}

		}
		if (flag == 1) {
			cout << "Yes" << endl;
		}

	}
	return 0;
}
