#include <bits/stdc++.h>
using namespace std;
class point {
 public:
  int a, b, c;
};
point p[50];
bool imc(point p1, point p2) {
  if (p1.c == p2.c)
    return p1.a < p2.a;
  else
    return p1.c < p2.c;
}
int main() {
  for (int n; cin >> n;) {
    if (n == 0) break;
    int i, j, k;
    int m = 0;
    for (i = 1; i <= n; ++i) {
      cin >> p[i].a >> p[i].b;
      p[i].c = p[i].b - p[i].a;
      if (p[i].c < 0) m = 1;
    }
    sort(&p[1], &p[n] + 1, imc);
    int sum = 0;
    for (i = 1; i <= n; ++i) {
      sum += p[i].a;
      if (sum > p[i].b) m = 1;
    }
    if (m == 1)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
