#include <bits/stdc++.h>
using namespace std;
pair<int, int> t[25];
int main() {
  int a;
  while (scanf("%d", &a), a) {
    for (int i = 0; i < a; i++) {
      scanf("%d%d", &t[i].first, &t[i].second);
    }
    std::sort(t, t + a);
    int now = 0;
    bool ok = true;
    for (int i = 0; i < a; i++) {
      now += t[i].first;
      if (now > t[i].second) ok = false;
    }
    printf(ok ? "Yes\n" : "No\n");
  }
}
