#include<bits/stdc++.h>
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
#define f first
#define s second
int main(){
  int n;
  while(cin>>n,n){
    pair<int,int>p[n];
    r(i,n)cin>>p[i].s>>p[i].f;
    sort(p,p+n);
    int sum=0;
    r(i,n){
      sum+=p[i].s;
      if(sum>p[i].f)goto L;
    }
    cout<<"Yes"<<endl;
    if(0){L:;cout<<"No"<<endl;}
  }
}