#include<iostream>

using namespace std;

int main(){
  int n;
  int x[25],y[25];
  while(1){
    cin >> n;
    if(n==0){
      break;
    }
    for(int i=0;i<n;i++){
      cin >> x[i] >> y[i];
    }
    int a[25]={0};
    int min=10000;
    int b=-1;
    int count=0;
    int ans=1;
    for(int i=0;i<n;i++){
      min = 10000;
      b=-1;
      for(int j=0;j<n;j++){
        if(y[j]<min&&a[j]==0){
          b=j;
          min=y[j];
        }
      }
      if(count+x[b]>y[b]){
        ans=0;
        break;
      }
      count+=x[b];
      a[b]=1;
    }
    if(ans==0){
      cout << "No" << endl;
    }else{
      cout<< "Yes" << endl;
    }
  }
}