import sys
n = 1
a = []
while(True):
    n = (int)(input())
    if  n == 0:
        break
    for i in range(n):
       a.append(int(input().split())) 

a.sort(key=lambda x:x[1])
nimo = 0
for i in range(n):
    if(a[i][1] >= nimo+a[i][0]):
        nimo += a[i][0]
    else:
        print("No")
        sys.exit()
print("Yes")
