#include <bits/stdc++.h>
using namespace std;
int main(void) {
  pair<int, int> p[25];
  int dn, a, b, i;
  while (cin >> dn, dn) {
    for (i = 0; i < dn; i++) {
      cin >> a >> b;
      p[i].first = a;
      p[i].second = b;
    }
    sort(p, p + dn);
    int ans = 0;
    for (i = 0; i < dn; i++) {
      ans += p[i].first;
      if (p[i].second < ans) break;
    }
    if (dn == i)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
