#include<iostream>
#include<fstream>
#include<string>
#include<algorithm>
using namespace std;
struct island{
	int c,d;
};
bool myComp(const island&a,const island&b){
	if(a.d!=b.d)   return a.d<b.d;
	else           return a.c<b.c;
}
island a[26];
int main(){
	//ifstream cin("input.txt");
	//ofstream cout("output.txt");
	for(int n;cin>>n&&n;){
		for(int i=0;i<n;i++)
			cin>>a[i].c>>a[i].d;
		sort(&a[0],&a[n],myComp);
		int sum=0,flag=0;
		for(int i=0;i<n;i++){
			sum+=a[i].c;
			if(sum>a[i].d)   flag=1;
		}
		cout<<(flag==0?"Yes\n":"No\n");
	}
}
		
			