#include<iostream>

using namespace std;

int main(){
  int n;

  while(cin>>n,n){
    pair<int,bool> treasure[25];
    int bridge[25];
    int total=0;
    bool flag=true;

    for(int i=0;i<n;++i){
      cin>>treasure[i].first>>bridge[i];
      treasure[i].second=false;
    }

    for(int i=0;i<n;++i){
      int min=1000000;
      int min_in;
      for(int j=0;j<n;++j){
	if(min>bridge[j] && treasure[j].second==false){
	  min=bridge[j];
	  min_in=j;
	}
      }
      total+=treasure[min_in].first;
      if(total>bridge[min_in]){
	flag=false;
	break;
      }
      treasure[min_in].second=true;
    }
    if(flag==true)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
}