#include <bits/stdc++.h>
using namespace std;
int main() {
  int xmax = 0, sum, n, takara[100000], hasi[100000], flag = 0, vmax = 0, h, hh,
      ans = 0;
  while (1) {
    ans = 0;
    flag = 0;
    sum = 0;
    xmax = 0;
    cin >> n;
    if (n == 0) break;
    for (int i = 0; i < n; i++) {
      cin >> takara[i];
      cin >> hasi[i];
      if (takara[i] > hasi[i]) flag = 1;
      sum += takara[i];
      xmax = max(xmax, hasi[i]);
    }
    if (flag == 1) {
      cout << "No" << endl;
      continue;
    }
    if (sum > xmax) {
      cout << "No" << endl;
      continue;
    }
    vmax = 0;
    for (int i = 0; i < n; i++) {
      vmax = i;
      for (int j = i; j < n; j++) {
        if (hasi[vmax] >= hasi[j]) vmax = j;
      }
      h = hasi[vmax];
      hasi[vmax] = hasi[i];
      hasi[i] = h;
      hh = takara[vmax];
      takara[vmax] = takara[i];
      takara[i] = hh;
    }
    for (int i = 0; i < n; i++) {
      if (ans > hasi[i]) {
        cout << "No" << endl;
        continue;
      }
      ans += takara[i];
      if (ans > hasi[i]) {
        cout << "No" << endl;
        continue;
      }
    }
    cout << "Yes" << endl;
  }
  return 0;
}
