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