let N = Int(readLine()!)!
let tasks: [(Int, Int)] = (0..<N).map { _ in
    let input = readLine()!.characters.split(" ").map{Int(String($0))!}
    return (input[0], input[1])
}
var ans = "Yes"
var time = 0
for AB in tasks.sort({$0.1<$1.1}) {
    time += AB.0
    if time > AB.1 {
        ans = "No"
        break
    }
}
print(ans)