#include<bits/stdc++.h>

using namespace std;

int main(){

  int n;

  while(cin>>n,n){

	int tre;
	int total=0;
	int bridge;
	int max=0;
	
	for(int i=0;i<n;++i){
	  cin>>tre>>bridge;
	  total+=tre;
	  max=max(max,bridge);
	}
		
	if(total<=bridge)
	  cout<<"Yes"<<endl;
	else
	  cout<<"No"<<endl;
	
  }

}

