#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<functional>
#include<string>
#include<cstring>
#include<cmath>
#include<set>
#include<map>
#include<sstream>
using namespace std;
typedef pair<int,int> P;
typedef long long ll;
const ll MOD=1000000007;
int n;
int main()
{
	while(cin>>n,n)
	{
		vector<P> num(n);
		for(int i=0;i<n;i++)
		{
			int a,b;
			cin>>a>>b;
			num[i].first=b;
			num[i].second=a;
		}
		sort(num.begin(),num.end());
		bool b=true;
		int ans=0;
		for(int i=0;i<n;i++)
		{
			if(abs(num[i].first)>=ans+num[i].second)ans+=num[i].second;
			else b=false;
		}
		if(!b)cout<<"No"<<endl;
		else cout<<"Yes"<<endl;
	}
	return 0;
}