#include<bits/stdc++.h>
using namespace std;
int main(){long long int n,i,a,b,c=0,k=0;
cin>>n;
vector<pair<long long int,long long int>>v;
for(i=0;i<n;i++){
    cin>>a>>b;
    v.push_back(make_pair(b,a));
}
sort(v.begin(),v.end());
for(i=0;i<n;i++){
    c+=v[i].second;
    //cout<<c<<" "<<v[i].first<<endl;;
    if(v[i].first<c){k++;}
}//cout<<k<<endl;
if(k){cout<<"No";}
else{cout<<"Yes";}
    return 0;}