while 1:
    n = input()
    if n==0: break
    t = []; s = 0;
    for i in xrange(n):
        w,l = map(int, raw_input().split())
        t.append([l-w,w])
    t.sort()
    for v in t:
        if s>v[0]:
            s = -1; break;
        s += v[1]
    print "Yes" if s!=-1 else "No"