def sky(x):
    return x[1]


while True:
    n = int(input())
    if n == 0:
        break
    
    brimax = 0
    sumz = 0
    for i in range(n):
        inp = list(map(int, input().split()))
        brimax = max(brimax, inp[1])
        sumz += inp[0]
    if brimax < sumz:
        print("No")
    else:
        print("Yes")

