#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
#define rep(i,a) for(int i = 0 ; i < a; i ++)
int main(void){
  int N;
  while(cin>>N,N){
    vector<pair<int,int> > v(N);
    rep(i,N)cin>>v[i].second>>v[i].first;
    sort(v.begin(),v.end());
    int M = 0;
    bool is = true;
    rep(i,N){
      M += v[i].second;
      if(v[i].first < M){
        is = false;
        break;
      }
    }
    cout<<(is?"Yes":"No")<<endl;
  }
  return 0;
}