#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

int main() {
  int n,i;cin >> n;
  vector<pair<int,int>> c(n);
  rep(i,n) cin >> c[i].second >> c[i].first;
  sort(c.begin(),c.end());
  bool flg=1;
  int cnt=0;
  rep(i,n) cnt+=c[i].second,(cnt > c[i].first)?flg=0:0;
  (flg==1)?cout<<"Yes":cout<<"No";
}
