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

#define PI 4*atan(1)
#define INF 1e8

typedef long long ll;

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

int main(){
  int n;
  while(cin >> n, n){
    vector<pair<int, int>> I(n);
    int t, w;
    for(int i = 0; i < n; i++){
      cin >> t >> w;
      I.push_back(make_pair(w, t));
    }
    sort(I.begin(), I.end());
    int a = 0;
    bool flag = true;
    for(int i = 0; i < I.size(); i++){
      a += I[i].second;
      if(a > I[i].first){
        flag = false;
      }
    }
    if(flag)cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}