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

int main(){

int n;
while(1){
vector<pair<int, int> > v;
cin >> n;
if(n == 0) break;
v.resize(n);
for(int i = 0; i < n; i++){
cin >> v[i].second >> v[i].first;
}
sort(v.begin(),v.end());

int ans = 0;
int judge = 0;
for(int i = 0; i < n; i++){
ans+= v[i].second;
if(ans > v[i].first){
judge = 1;
break;
}
}

if(judge == 0) cout << "Yes" << endl;
else cout << "No" << endl;
}


}