#include <bits/stdc++.h>
using namespace std;
class data {
 public:
  int a, b;
  bool operator<(const data& d) const { return a < d.a; }
};
int main() {
  for (;;) {
    int n;
    cin >> n;
    if (n == 0) break;
    vector<data> d(n);
    for (int i = 0; i < n; ++i) cin >> d[i].a >> d[i].b;
    sort(d.begin(), d.end());
    int total = 0;
    bool ok = true;
    for (int i = 0; i < n; ++i) {
      total += d[i].a;
      if (total > d[i].b) {
        ok = false;
        break;
      }
    }
    if (ok)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
