#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  while (true) {
    cin >> n;
    if (n == 0) break;
    vector<pair<int, int> > V;
    for (int i = 0; i < n; i++) {
      int d, w;
      cin >> w >> d;
      V.push_back(pair<int, int>(d, w));
    }
    sort(V.begin(), V.end());
    int sw = 0;
    bool ans = true;
    for (int i = 0; i < n; i++) {
      sw += V[i].second;
      if (sw > V[i].first) {
        ans = false;
        break;
      }
    }
    cout << (ans ? "Yes" : "No") << endl;
  }
  return 0;
}
