#include <iostream>
#include <algorithm>

using namespace std;

struct Island {
	int value;
	int capacity;
};

bool operator<( const Island &a, const Island &b )
{
	return (a.capacity < b.capacity);
}

int main( void )
{
	int n;
	Island map[25];
	while(cin >> n, n) {
		for(int i=0; i < n; ++i)
			cin >> map[i].value >> map[i].capacity;
		sort(map, map+n);
		bool hit = true;
		int sum = 0;
		for(int i=0; i < n; ++i) {
			sum += map[i].value;
			if(sum > map[i].capacity) {
				hit = false;
				break;
			}
		}
		if(hit)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
	return 0;
}