#include <bits/stdc++.h>
using namespace std;
struct ai {
  int tre;
  int bri;
};
int main() {
  ai land[26];
  int n, cnt = 0;
  while (1) {
    cin >> n;
    if (n == 0) break;
    for (int i = 0; i < n; i++) {
      cin >> land[i].tre >> land[i].bri;
    }
    for (int i = 0; i < n; i++) {
      for (int j = n - 1; j > i; j--) {
        if (land[j].bri < land[j - 1].bri) swap(land[j], land[j - 1]);
      }
    }
    for (int i = 0; i < n; i++) {
      if (land[i].bri < land[i].tre) {
        cout << "No" << endl;
        break;
      } else if (land[i].bri >= land[i].tre) {
        land[i + 1].tre += land[i].tre;
        cnt++;
        if (cnt == n) {
          cnt = 0;
          cout << "Yes" << endl;
          break;
        }
      }
    }
  }
  return 0;
}
