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

int main() {
  ll N;
  cin >> N;

  map<ll, ll> m;
  rep(i,0,N-1) {
    ll A, B;
    cin >> A >> B;
    m[B] += A;
  }

  ll num = 0; string ans = "Yes";
  for (pair<int,int> p : m) {
    num += p.second;
    if (p.first < num) ans = "No";
  }

  cout << ans << endl;
  return 0;
}
