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

const double pi  = 2 * acos(0.0);
const double eps = 1e-8;

#define REP(i,a,b) for(int i=(a); i<(b);++i)
#define rep(i,n) REP(i,0,n)
#define INF (1<<29)
#define INFLL (1LL<<61)

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int dx[8] = {0, 1, 0, -1, 1, -1, 1, -1};
int dy[8] = {1, 0, -1, 0, 1, -1, -1, 1};

int main(void) {
  ios_base::sync_with_stdio(false); cin.tie(0);
  int N;
  while (cin >> N, N) {
    vector<pii> data(N);
    for (int i = 0; i < N; i++)
      cin >> data[i].second >> data[i].first;

    sort(data.begin(), data.end());

    ll s = 0;
    bool ok = true;
    for (int i = 0; i < data.size(); i++) {
      s += data[i].second;
      if (s > data[i].first) {
        ok = false;
        break;
      }
    }

    if (ok) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
  return 0; 
}