#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const double EPS = 1e-9;
const int dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
int main() {
  int n;
  while (cin >> n, n) {
    vector<pair<int, int> > data;
    data.clear();
    for (int i = 0; i < n; i++) {
      int v, w;
      cin >> v >> w;
      data.push_back(pair<int, int>(w, v));
    }
    sort(data.begin(), data.end());
    int sum = 0;
    for (int i = 0; i < data.size(); i++) {
      sum += data[i].second;
      if (sum > data[i].first) {
        cout << "No" << endl;
        return 0;
      }
    }
    cout << "Yes" << endl;
  }
  return 0;
}
