#include <iostream>

using namespace std;

int main(){
  int a[25], b[25], n;
  while(1){
    int sum = 0;
    cin >> n;
    if(n == 0) break;

    for(int i = 0;i < n;i++){
      cin >> a[i] >> b[i];
    }

    for(int i = 0;i < n;i++){
      for(int j = i+1;j < n;j++){
        if(b[i] > b[j]){
          swap(a[i], a[j]);
          swap(b[i], b[j]);
        }
      }
    }

    for(int i = 0;i < n;i++){
      sum+=a[i];
      if(sum > b[i]){
        cout << "No" << endl;
        break;
      } else if (i == n-1){
        cout << "Yes" << endl;
      }
    }
  }

  return 0;
}