#include <bits/stdc++.h>

using namespace std;

struct dat {
	int x, y;
	bool operator < (const dat& T) const {
		return y < T.y;
	}
}a[200005];

int main() {
	int n;
	scanf("%d", &n);
	
	for (int i = 0; i < n; i++) scanf("%d%d", &a[i].x, &a[i].y);
	
	sort(a, a + n);
	int cur = 0;
		
	for (int i = 0; i < n; i++) {
		cur += a[i].x;	
		if (cur > a[i].y) return 0 * printf("No\n");
	
	}
	
	printf("Yes\n");
}
