#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n && n) {
    vector<pair<int, int> > bridge(n);
    for (int i = 0; i < n; ++i) {
      cin >> bridge[i].first;
      cin >> bridge[i].second;
    }
    for (int i = 0; i < n; ++i) {
      for (int j = n - i - 1; j > 0; --j) {
        if (bridge[j].second < bridge[j - 1].second) {
          swap(bridge[j], bridge[j - 1]);
        } else if (bridge[j].second == bridge[j - 1].second &&
                   bridge[j].first < bridge[j - 1].first) {
          swap(bridge[j], bridge[j - 1]);
        }
      }
    }
    bool f = true;
    int w = 0;
    for (int i = 0; i < n; ++i) {
      if (w + bridge[i].first <= bridge[i].second) {
        w += bridge[i].first;
      } else {
        f = false;
      }
    }
    if (f) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
