#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;

int main()
{
  int n;
  for(;cin>>n,n;)
    {
      vector<pair<int,int> > p;
      for(int i=0;i<n;i++)
	{
	  int a,b;
	  cin>>a>>b;
	  p.push_back(make_pair(b,a));
	}
      sort(p.begin(),p.end());
      int add=0;
      bool flag = true;
      for(int i=0;i<n;i++)
	{
	  //  cout<<i<<":"<<p[i].first<<p[i].second<<endl;
	  add+=p[i].second;
	  if(add>p[i].first)
	    {
	      flag=false;
	      break;
	    }
	}
      if(flag)
	cout<<"Yes"<<endl;
      else 
	cout<<"No"<<endl;
    }
}

  