#include <bits/stdc++.h>
using namespace std;
struct elem {
	int a, b;
};
elem arr[200000];
int main() {
	ios::sync_with_stdio(0);cin.tie(0);
	int n;
	cin >> n;
	for(int i=0; i<n; i++) {
		cin >> arr[i].a >> arr[i].b;
	}
	sort(arr, arr+n, [](elem a, elem b){return a.b < b.b;});
	int cur = 0;
	for(int i=0; i<n; i++) {
		cur += arr[i].a;
		if(cur > arr[i].b)
			return !(cout << "No");
	}
	cout << "Yes";
}