#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  while(cin>>n,n){
    int b[n],w[n];
    for(int i=0;i<n;++i) cin>>b[i]>>w[i];
    for(int i=0;i<n;++i){
      for(int j=n-1;j>i;--j){
        if(w[i]>w[j]){
          swap(b[i],b[j]);
          swap(w[i],w[j]);
        }
      }
    }
    int flag=0,cnt=0;
    for(int i=0;i<n;++i){
      cnt+=b[i];
      if(w[i]<cnt) flag=1;
    }
    if(flag) cout<<"No\n";
    else cout<<"Yes\n";
  }
  return 0;
}