#include "bits/stdc++.h"

using namespace std;

void solve(void)
{
	int n;
	cin >> n;
	vector<pair<int, int>> ps(n);
	for (auto& p : ps) cin >> p.second >> p.first;
	sort(ps.begin(), ps.end());
	int now = 0, f = 1;
	for (auto p : ps)
	{
		now += p.second;
		f &= now <= p.first;
	}
	cout << (f ? "Yes" : "No") << endl;
}

int main()
{
	solve();
	//cout << "yui(*-v・)yui" << endl;
	return 0;
}
