#include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define int long long
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

signed main(){
	int n;
	while(cin>>n && n>0){
		vector<pii> d(n);
		rep(i,0,n) cin>>d[i].second>>d[i].first;
		sort(all(d));

		int now=0;
		bool f=true;
		rep(i,0,n){
			now+=d[i].second;
			if(now>d[i].first) f=false;
		}
		o((f?"Yes":"No"));
	}
}