#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n, n) {
    map<int, int> m;
    int a, b;
    bool flag = true;
    for (int i = 0; i < n; i++) {
      cin >> a >> b;
      m[a] = b;
    }
    int amount = 0;
    map<int, int>::iterator it = m.begin();
    while (it != m.end()) {
      amount += (*it).first;
      if (amount > (*it).second) {
        flag = false;
        break;
      }
      it++;
    }
    if (flag)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
