#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10;
const double pi = acos(-1.0);
const double inf = (int)1e8;
int main() {
  int n;
  while (cin >> n, n) {
    vector<pair<int, int>> v(n);
    for (int i = (0); i < unsigned long long(n); ++i)
      cin >> v[i].second >> v[i].first;
    sort(v.begin(), v.end());
    int m = 0;
    bool is = true;
    for (int i = (0); i < unsigned long long(n); ++i) {
      m += v[i].second;
      if (v[i].first < m) {
        is = false;
        break;
      }
    }
    cout << (is ? "Yes" : "No") << endl;
  }
}
