#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum, max, weight, number;
  while (1) {
    cin >> n;
    if (n == 0) break;
    sum = 0;
    max = 0;
    for (int i = 0; i < n; i++) {
      cin >> number >> weight;
      if (weight > max) max = weight;
      sum += number;
    }
    if (max >= sum) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
