#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  int i, j;
  for (int testcase = 0;; testcase++) {
    int n;
    scanf("%d", &n);
    if (n == 0) break;
    bool fl = true, vsted[n];
    long long sum, w[n], d[n];
    int cnt = 0;
    for (i = 0; i < n; ++i) {
      cin >> w[i] >> d[i];
      vsted[i] = true;
      if (w[i] == d[i]) cnt++;
      if (w[i] > d[i]) fl = true;
    }
    if (!fl || cnt >= 2) {
      cout << "No"
           << "\n";
      continue;
    }
    for (i = 0; i < n; ++i) sum += w[i];
    cnt = 0;
    for (int tmp = n; tmp; cnt++) {
      for (i = 0; i < n; ++i)
        if (vsted[i] && sum <= d[i]) {
          vsted[i] = false;
          sum -= w[i];
          tmp--;
        }
      if (cnt >= 30) break;
    }
    if (cnt < 30)
      cout << "Yes"
           << "\n";
    else
      cout << "No"
           << "\n";
  }
  return 0;
}
