#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n, n) {
    int tre;
    int total = 0;
    int bridge;
    int max = 0;
    bool t = true;
    for (int i = 0; i < n; ++i) {
      cin >> tre >> bridge;
      total += tre;
      if (max < bridge) max = bridge;
      if (tre > bridge) t = false;
    }
    if (total <= max && t == true)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
