#include <bits/stdc++.h>
using namespace std;
bool check(long long n) {
  map<long long, vector<pair<long long, long long>>> mp;
  for (long long i = 0; i < (n); i++) {
    long long a, b;
    cin >> a >> b;
    mp[b - a].emplace_back(pair<long long, long long>(a, b));
  }
  long long sm = 0;
  for (auto pp : mp) {
    auto v = pp.second;
    sort((v).begin(), (v).end());
    for (auto p : v) {
      sm += p.first;
      if (sm > p.second) {
        return false;
      }
    }
  }
  return true;
}
signed main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  long long n;
  while (cin >> n, n) {
    cout << (check(n) ? "Yes" : "No") << endl;
  }
}
