#include <bits/stdc++.h>
int main(void) {
  int n, sum;
  bool NGflag;
  std::pair<int, int> bridge[30];
  while (true) {
    scanf("%d", &n);
    if (n == 0) {
      break;
    }
    for (int i = 0; i < n; i++) {
      scanf("%d%d", &bridge[i].first, &bridge[i].second);
    }
    std::sort(&bridge[0], &bridge[n]);
    sum = 0;
    NGflag = false;
    for (int i = 0; i < n; i++) {
      sum += bridge[i].first;
      if (sum > bridge[i].second) {
        NGflag = true;
        break;
      }
    }
    if (NGflag) {
      printf("No\n");
    } else {
      printf("Yes\n");
    }
  }
  return 0;
}
