#include<iostream>
#include<algorithm>
#include<utility>
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
using namespace std;
typedef pair<int,int> p;

int main(){
	int n;
	while(cin>>n,n){
		p island[n];
		rep(i,n)cin>>island[i].second>>island[i].first;
		sort(island,island+n);
		int w=0;
		bool check=true;
		rep(i,n){
			if((w+island[i].second)<=island[i].first){
				w+=island[i].second;
			}else{
				check=false;
				break;
			}
		}
		cout<<((check)?"Yes":"No")<<endl;
	}
	return 0;
}