#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	vector<pair<int,int>>xy;
	
	for(int i=1;i<=n;i++)
	{
		int a,b;
		cin>>a>>b;
		xy.emplace_back(b,a);
	}


	sort(xy.begin(),xy.end());
	int sum=0;
	bool isyes = true;
	for(auto v: xy)
	{
		sum+=v.second;
		if(sum>v.first)
		{
			isyes = false;
			break;
		}
	}
	cout<<(isyes ? "Yes" : "No")<<endl;
	return 0;
}