#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  while (true) {
    int N;
    cin >> N;
    if (N == 0) {
      return 0;
    }
    map<int, int> mp;
    for (int i = 0; i < (N); i++) {
      int a, b;
      cin >> a >> b;
      mp.insert(pair<int, int>(a, b));
    }
    int count{0};
    bool flag = true;
    for (auto& x : mp) {
      count += x.first;
      if (count > x.second) {
        flag = false;
      }
    }
    cout << (flag ? "Yes" : "No") << endl;
  }
  return 0;
}
