#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

#define pii pair<int,int>

int main() {
  int n;
  while(cin>>n,n) {
    vector<pii> v;
    for (int i=0;i<n;i++) {
      int a, b;
      cin >> a >> b;
      v.push_back(pii(b,a));
    }
    sort(v.begin(),v.end());
    int x=0;
    int i;
    for (i=0; i<n; i++) {
      x += v[i].second;
      if (x>v[i].first) break;
    }
    if (i==n)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}