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