#include<bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;//brige, treasure
int main(){
  int n;
  while(std::cin >> n, n){
    vector<pii> island(n);
    for (int i = 0; i < n; i++) {
      std::cin >> island[i].second >> island[i].first;
    }
    sort(island.begin(), island.end());
    int w = 0;
    for (int i = 0; i < n; i++) {
      if(w + island[i].second > island[i].first){
        std::cout << "No" << std::endl;
        break;
      }
      w += island[i].second;
      if(i == n - 1){
        std::cout << "Yes" << std::endl;
      }
    }
  }
  return 0;
}