local n = io.read("*n")
local t = {}
for i = 1, n do
  t[i] = {}
  t[i].a, t[i].b = io.read("*n", "*n")
  t[i].c = t[i].b - t[i].a
end
table.sort(t, function(x, y)
  return x.b > y.b
end)

local mmi = math.min
-- local isok = true
local cur = t[1].c
for i = 2, n do
  cur = mmi(t[i].c, cur - t[i].a)
end
print(0 <= cur and "Yes" or "No")
