#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (true) {
    cin >> n;
    if (n == 0) return 0;
    int sima[n];
    int hasi[n];
    for (int i = 0; i < n; i++) {
      cin >> sima[i];
      cin >> hasi[i];
    }
    set<int> array;
    for (int i = 0; i < n; i++) {
      array.insert(hasi[i]);
    }
    int sum = 0;
    int flag = 0;
    set<int>::iterator it = array.begin();
    while (it != array.end()) {
      for (int j = 0; j < n; j++) {
        if (*it == hasi[j]) {
          sum = sum + sima[j];
          if (sum <= hasi[j]) {
          } else {
            cout << *it << " " << j << " " << hasi[j] << " " << sum << endl;
            flag = 1;
            cout << "No" << endl;
            break;
          }
        }
      }
      it++;
      if (flag == 1) break;
    }
    if (flag != 1) {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
