#include <iostream>
using namespace std;

int main(){
  int n;

  while(true){
    cin >> n;
    if(n == 0) break;

    int w[n], c[n];

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

    for(int i = 0; i < n; i++){
      for(int j = i + 1; j < n; j++){
        if(c[i] < c[j]) continue;
        swap(w[i], w[j]);
        swap(c[i], c[j]);
      }
    }

    int sum = 0;
    bool yesFlg = true;

    for(int i = 0; i < n; i++){
      sum += w[i];
      if(sum > c[i]){
        yesFlg = false;
        break;
      }
    }
    cout << (yesFlg ? "Yes" : "No") << endl;
  }
}