#include <iostream>
#include <set>

using namespace std;

int main(void)
{
	int n;
	int temp1,temp2;
	int i1;
	int ok;

	while(1){
		cin>>n;
		if(n==0) break;

		multiset<pair<int,int> > w;
		int sum;

		for(i1=0;i1<n;i1++){
			cin>>temp1>>temp2;
			w.insert(make_pair(temp2,temp1));
		}

		sum=0;
		ok=1;
		set<pair<int,int> >::iterator it;
		for(it=w.begin();it!=w.end();it++){
			sum+=it->second;
			if(sum>it->first) ok=-1;
		}

		if(ok==-1) cout<<"No"<<endl;
		else cout<<"Yes"<<endl;
	}
	return 0;
}