import sys readline = sys.stdin.readline N = int(readline()) D = [] now = 0 for i in range(N): A, B = map(int, readline().split()) D.append([A + B, A]) now += A D.sort() while D: if D[-1][0] >= now: _, A = D.pop() now -= A else: break print("No") if D else print("Yes")