local N = io.read("n")
local jobs = {}
for i=1, N do
    local a, b = io.read("n", "n")
    jobs[i] = {a, b}
end
table.sort(jobs, function(x1, x2)
    return x1[2] < x2[2]
end)
local cursor = 0
for i=1, N do
    local a, b = jobs[i][1], jobs[i][2]
    if cursor + a > b then
        print("No")
        return
    else
        cursor = cursor + a
    end
end
print("Yes")