while 1:
    N = int(input())
    if N == 0:
        break
    P = [list(map(int, input().split())) for i in range(N)]
    P.sort(key=lambda x: (-x[1], x[0]))
    su = sum(w for w, s in P)
    for w, s in P:
        if s < su:
            print("No")
            break
        su -= w
    else:
        print("Yes")

