// abc131d.cpp : Megalomania
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
  int N; cin>>N;
  map<ll,ll> jb;

  ll a, b;
  for(int i=0;i<N;i++){
    cin>>a>>b;
    jb[b] += a;
  }

  bool f = true;
  a = b = 0;
  for(auto e = jb.begin(); e!=jb.end(); e++){
    a += e->second;
    if(a>e->first){
      f = false;
      break;
    }
  }
  cout<< (f?"Yes":"No") <<endl;

}