#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum, x, y;
  map<int, int> mp;
  while (cin >> n, n) {
    for (int i = 0; i < n; i++) {
      cin >> x >> y;
      mp.insert(pair<int, int>(y, x));
    }
    map<int, int>::iterator ite = mp.begin();
    sum = 0;
    while (ite != mp.end()) {
      sum += ite->second;
      if (sum > ite->first) {
        break;
      }
      ite++;
    }
    if (ite == mp.end())
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
    mp.clear();
  }
  return 0;
}
