#include <bits/stdc++.h>
using namespace std;
vector<string> ans;
int main() {
  while (1) {
    int n;
    cin >> n;
    if (n == 0) break;
    int it[25];
    int bl[25];
    int sindex[25];
    for (int i = 0; i < n; i++) {
      cin >> it[i] >> bl[i];
      sindex[i] = i;
    }
    for (int i = 0; i < n; i++) {
      for (int j = i + 1; j < n; j++) {
        if (it[sindex[i]] > it[sindex[j]]) {
          int tind = sindex[i];
          sindex[i] = sindex[j];
          sindex[j] = tind;
        }
      }
    }
    int tsum = 0;
    bool tans = true;
    for (int i = 0; i < n; i++) {
      tsum += it[sindex[i]];
      if (tsum > bl[sindex[i]]) tans = false;
    }
    if (tans) {
      ans.push_back("Yes");
    } else {
      ans.push_back("No");
    }
  }
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
  return 0;
}
