d[25],i,W,g;
//M(int*a){return*1[&a]-*a;}
M(int*a,int*b){return*b-*a;}
main(n){
	for(;scanf("%d",&n),n;){
		for(i=n;i--;){
			int m,w;
			scanf("%d%d",&m,&w);
			d[i]=w*999+m;
		}
		qsort(d,n,4,M);
		W=g=0;
		for(i=n;i--;){
			W+=d[i]%999;
			if(W>d[i]/999)
				g=1;
		}
		puts(g?"No":"Yes");
	}
	exit(0);
}