#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n && n != 0) {
    map<int, int> a;
    for (int i = 0; i < n; i++) {
      int b, c;
      cin >> b >> c;
      a.insert(map<int, int>::value_type(c, b));
    }
    long long sum = 0;
    map<int, int>::iterator it = a.begin();
    for (int i = 0; i < n; i++) {
      sum += (*it).second;
      if (sum > (*it).first) {
        cout << "No" << endl;
        goto stop;
      }
      it++;
    }
    cout << "Yes" << endl;
  stop:;
  }
}
