#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(){
	int N;
	cin>>N;
	pair<ll,ll>p[200010];
	for(int i=0;i<N;i++){
		ll a,b;
		cin>>a>>b;
		p[i].first=b;
		p[i].second=a;
	}
	sort(p,p+N);
	ll sum=0;
	for(int i=0;i<N;i++){
		sum+=p[i].second;
		if(sum>p[i].first){
			cout<<"No"<<endl;
			return 0;
		}
	}
	cout<<"Yes"<<endl;
	return 0;
}