#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, num;
  int word;
  pair<int, int> p;
  while (1) {
    int sum = 0, flag = 0;
    vector<pair<int, int> > v;
    cin >> N;
    if (N == 0) break;
    for (int i = 0; i < N; i++) {
      cin >> word >> num;
      p.first = word;
      p.second = num;
      v.push_back(p);
    }
    sort(v.begin(), v.end());
    for (int i = 0; i < N; i++) {
      sum += v[i].first;
      if (v[i].second < sum) {
        flag = 1;
      }
    }
    if (flag)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
