while 1:
    n=int(input())
    if n==0:break
    a=[tuple(map(int,reversed(input().split()))) for _ in range(n)]
    a.sort()
    w=0
    for x,y in a:
        w+=y
        if x<w:print('No');break
    else:print('Yes')