#include <bits/stdc++.h>
int main() {
  int n;
  while (std::cin >> n && n != 0) {
    std::vector<std::pair<int, int>> is;
    int a, b;
    for (int i = 0; i < n; i++) {
      std::cin >> a >> b;
      is.emplace_back(a, b);
    }
    std::sort(is.begin(), is.end());
    int tr = 0;
    for (int i = 0; i < n; i++) {
      tr += is[i].first;
      if (tr > is[i].second) {
        std::cout << "No" << std::endl;
        break;
      }
      if (i == n - 1) {
        std::cout << "Yes" << std::endl;
      }
    }
  }
}
