#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main()
{
	for(int n;cin>>n,n;){
		vector<pair<int,int> > a(n); // capacity, value
		for(int i=0;i<n;i++)
			cin>>a[i].second>>a[i].first;
		sort(a.begin(),a.end());
		
		int sum=0;
		bool res=true;
		for(int i=0;i<n;i++){
			sum+=a[i].second;
			res&=a[i].first>=sum;
		}
		
		cout<<(res?"Yes":"No")<<endl;
	}
	
	return 0;
}