def sky(x):
    return x[1]


while True:
    n = int(input())
    if n == 0:
        break
    
    arr = [[] for i in range(n)]
    sumh = 0
    for i in range(n):
        arr[i] = list(map(int, input().split()))
        sumh += arr[i][0]
    arr.sort(key=sky, reverse=True)
    print(arr)
    res = True
    for e in arr:
        if sumh > e[1]:
            res = False
            break
        sumh -= e[0]
    if res:
        print("Yes")
    else:
        print("No")

