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

int n;
pair<int, int> schedule[200004];
int main() {
	cin>>n;
	for(int i = 0;i<n;i++){
		int a, b;
		cin>>a>>b;
		schedule[i] = {b, a};
	}
	sort(schedule, schedule + n);
	int cur = 0;
	for(int i = 0;i<n;i++){
		if(schedule[i].second + cur > schedule[i].first){
			cout<<"No";
			return 0;
		}
		cur += schedule[i].second;
	}
	cout<<"Yes";
	return 0;
}
