while True:
  n = int(input())
  if n == 0:
    break
  lst = sorted([list(map(int, input().split())) for _ in range(n)], key=lambda x:x[-1])
  acc = 0
  for w, b in lst:
    acc += w
    if acc > b:
      print("No")
      break
  else:
    print("Yes")

