#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  for (; cin >> n, n;) {
    vector<pair<int, int> > p;
    for (int i = 0; i < n; i++) {
      int a, b;
      cin >> a >> b;
      p.push_back(make_pair(a, b));
    }
    sort(p.begin(), p.end());
    int add = 0;
    bool flag = true;
    for (int i = 0; i < n; i++) {
      add += p[i].first;
      if (add > p[i].second) {
        flag = false;
      }
    }
    if (flag)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
