#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    
    while (scanf("%d", &n) && n){
        pair<int, int> a[32];
        
        for (int i = 0; i < n; i++){
            scanf("%d %d", &a[i].second, &a[i].first);
        }
        
        sort(a, a + n);
        
        bool ok = true;
        
        for (int i = 0; i < n; i++){
            if (i) a[i].second += a[i - 1].second;
            if (a[i].first < a[i].second) ok = false;
        }
        
        if (ok) printf("Yes\n");
        else printf("No\n");
    }
    
    return (0);
}