#include <bits/stdc++.h>
using namespace std;
int n, a, b, c = 0;
vector<pair<int, int>> vpi;
bool f = 0;
int main() {
  while (cin >> n) {
    if (!n) break;
    for (long long i = 0; i < (n); i++) {
      cin >> b >> a;
      pair<int, int> pi;
      pi.first = a;
      pi.second = b;
      vpi.push_back(pi);
    }
    sort((vpi).begin(), (vpi).end());
    for (long long i = 0; i < (n); i++) {
      c += vpi[i].second;
      if (c > vpi[i].first) {
        f = 1;
      }
    }
    f ? cout << "No\n" : cout << "Yes\n";
    c = 0;
    f = 0;
    vpi.clear();
  }
}
