#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, flag;
  int me = 0;
  long long mi, now;
  int w[25], v[25];
  while (1) {
    cin >> n;
    if (n == 0) break;
    for (int i = (0); i < (n); i++) {
      cin >> w[i] >> v[i];
    }
    for (int j = (0); j < (n); j++) {
      mi = 100000000;
      for (int i = (0); i < (n); i++) {
        if (v[i] >= 0) {
          if (mi > v[i]) {
            mi = v[i];
            now = i;
          }
        }
      }
      if (me + w[now] > v[now]) {
        cout << "No" << endl;
        flag = 0;
        break;
      } else {
        me = me + w[now];
        v[now] = -1;
        flag = 1;
      }
    }
    if (flag == 1) {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
