#include <bits/stdc++.h>
using namespace std;
struct cell {
  int e, w;
  cell() { e = w = 0; }
  cell(int a, int b) {
    e = a;
    w = b;
  }
};
bool operator<(cell a, cell b) { return a.e != b.e ? a.e < b.e : a.w < b.w; }
int main() {
  int n, a, b, i, w;
  vector<cell> v;
  while (cin >> n, n) {
    v.resize(n);
    for (i = 0; i < n; i++) {
      cin >> a >> b;
      v[i] = cell(a, b);
    }
    sort(v.begin(), v.end());
    w = 0;
    for (i = 0; i < n; i++) {
      w += v[i].w;
      if (w > v[i].e) {
        w = -1;
        break;
      }
    }
    if (~w)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
