#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n, n) {
    pair<int, int> t[n];
    int wei = 0;
    bool ans = true;
    for (int i = 0; i < n; i++) cin >> t[i].first >> t[i].second;
    sort(t, t + n);
    for (int i = 0; i < n; i++) {
      if (wei + t[i].first > t[i].second) {
        ans = false;
      }
      wei += t[i].first;
    }
    cout << ((ans) ? "Yes" : "No") << endl;
  }
  return 0;
}
