#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n, n) {
    pair<int, bool> treasure[25];
    int bridge[25];
    int total = 0;
    bool flag = true;
    for (int i = 0; i < n; ++i) {
      cin >> treasure[i].first >> bridge[i];
      treasure[i].second = false;
    }
    for (int i = 0; i < n; ++i) {
      int min = 1000000;
      int min_in;
      for (int j = 0; j < n; ++j) {
        if (min > treasure[j].first && treasure[j].second == false) {
          min = treasure[j].first;
          min_in = j;
        }
      }
      total += min;
      if (total > bridge[min_in]) {
        flag = false;
        break;
      }
      treasure[min_in].second = true;
    }
    if (flag == true)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
