n = int(input()) ab = [list(map(int, input().split())) for _ in range(n)] ab.sort(key = lambda x:x[0] + x[1]) tot = 0 for a, b in ab: if tot > b: print("No") exit() tot += a print("Yes")