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

using namespace std;
vector<string> ans;

int main(){
	while(1){
		int n;
		cin >> n;
		if(n == 0) break;
		
		int it[25];
		int bl[25];
		
		int sindex[25];
		
		for(int i = 0;i < n;i++) {
			cin >> it[i] >> bl[i];
			sindex[i] = i;
		}
		
		for(int i = 0;i<n;i++){
			for(int j = i+1;j < n;j++){
				if(bl[sindex[i]] > bl[sindex[j]]){
					int tind = sindex[i];
					sindex[i] = sindex[j];
					sindex[j] = tind;
				}
			}
		}
		
		int tsum = 0;
		bool tans = true;
		for(int i =0;i<n;i++){
			tsum += it[sindex[i]];
			if(tsum > bl[sindex[i]]) tans = false;
		}
		
		if(tans){
			ans.push_back("Yes");
	 	}else{
	 		ans.push_back("No");
	 	}
	}
 	
 	for(int i = 0;i < ans.size();i++) cout << ans[i] << endl;
 	
	return 0;
}