#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin>>n;
  pair<long, long> ba[n];
  for (int i=0; i<n; i++) {
    long a, b;
    cin>>a>>b;
    ba[i] = make_pair(b, a);
  }
  sort(ba, ba + n);

  long t = 0;
  for (auto i: ba) {
    t += i.second;
    if (t > i.first) {
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
}