#include<bits/stdc++.h>

using namespace std;

int main()
{
  while(1){
    int n;
    cin>>n;

    if(n == 0){
      break;
    }

    vector<pair<int,int>> wg;
    vector<pair<int,int>> ob;
    for(int i = 0;i < n;++i){
      int w,o;
      cin>>w;
      cin>>o;

      wg.push_back(make_pair(w,o));
      ob.push_back(make_pair(o,w));
    }

    sort(wg.begin(),wg.end());
    sort(ob.begin(),ob.end());    

    int fir = 0;
    int sec = 0;
    bool wg_check = true;
    bool ob_check = true;

    for(pair<int,int> e : wg){
      fir += e.first;
      sec = e.second;

      if(sec < fir){
        wg_check = false;
      }
    }

    fir = 0;
    sec = 0;
    
    if(wg_check != true){
      for(pair<int,int> e : ob){
        fir = e.first;
        sec += e.second;

        if(sec > fir){
          ob_check = false;
        }
      }
    }

    if(wg_check == false && ob_check == false){
      cout<<"No"<<endl;
    }
    else{
      cout<<"Yes"<<endl;
    }
  }
  return 0;
}
