#include<vector>
#include<list>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
  int h,i;
  int a[25],b[25],c[25],n;
  int sm,cr;
  while(cin>>n&&n){
    sm=0;
    for(i=0;i<n;i++){
      cin>>a[i]>>b[i];
      sm+=a[i];
    }
    memset(c,0,sizeof(c));

    for(h=0;h<n;h++){
      cr=-1;
      for(i=0;i<n;i++){
	if(c[i]==0){
	  if(b[i]>=sm){
	    if(cr==-1||a[cr]<a[i])
	      cr=i;
	  }
	}
      }
      if(cr==-1)
	break;
      else{
	sm-=a[cr];
	c[cr]=1;
      }
    }
    if(h==n)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  return 0;
}