#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n && n) {
    vector<int> land;
    vector<int> cost;
    for (int i = 0; i < n; ++i) {
      int tmp1, tmp2;
      cin >> tmp1 >> tmp2;
      cost.push_back(tmp1);
      land.push_back(tmp2);
    }
    for (int i = 0; i < n; ++i) {
      for (int j = n - i - 1; j > 0; --j) {
        if (cost[j] > cost[j - 1]) {
          swap(cost[j], cost[j - 1]);
          swap(land[j], land[j - 1]);
        }
      }
    }
    int w = 0;
    bool f = true;
    for (int i = n - 1; i >= 0; --i) {
      if (w + cost[i] <= land[i]) {
        w += cost[i];
      } else {
        f = false;
        break;
      }
    }
    if (f) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
