#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  while (1) {
    scanf("%d", &N);
    if (N == 0) break;
    vector<pair<int, int> > v(N, pair<int, int>(0, 0));
    for (int i = 0; i < N; i++) {
      int takara, bridge;
      scanf("%d%d", &takara, &bridge);
      takara = bridge - takara;
      v[i] = make_pair(takara, bridge);
    }
    sort(v.begin(), v.end());
    int amount = 0;
    int success = 1;
    for (int i = 0; i < N; i++) {
      amount += v[i].second - v[i].first;
      if (amount > v[i].second) {
        success = 0;
        break;
      }
    }
    printf(success ? "Yes\n" : "No\n");
  }
}
