#include  <iostream>
using namespace std;
 
int main() {
 
  int n,a[25],b[25];
 
  while(1) {
    cin >> n;
 
    if(n==0) break;
 
    for(int i=0;i<n;i++) {
      cin >> a[i] >> b[i];
 
    }
 
    int t;
    for(int i=0;i<n;i++) {
      for(int j=i;j<n;j++) {
    if(b[i] > b[j]) {
      t = b[i];
      b[i] = b[j];
      b[j] = t;
 
      t = a[i];
      a[i] = a[j];
      a[j] = t;
    }
      }
    }
 
    int sum =0;
    int flag = 0;
    for(int i=0;i<n;i++) {
 
      sum += a[i];
 
      if(sum > b[i]) {
    flag  = 1;
    break;
      }
 
    }
 
    if(flag == 0) cout << "Yes" << endl;
    else cout << "No"<< endl;
 
  }
 
  return 0;
 
}