#include "bits/stdc++.h"
using namespace std;
int main(){
  int n;
  while(cin>>n,n){
    //pair c++ で検索検索！
    vector<pair<int,int>> br(n);
    for(int i=0;i<n;++i){
      cin >> br.at(i).second >> br.at(i).first;
    }
    sort(br.begin(),br.end());
    int sum = 0;
    for(int i=0;i<n;++i){
      sum += br.at(i).second;
      if(br.at(i).first < sum){
        cout << "No" << endl;
        break;
      }
      if(i==n-1){
        cout << "Yes" << endl;
      }
    }
  } 
}
