var ans = "Yes"
var time = 0
for AB in ((0..<Int(readLine()!)!).map{_ in readLine()!.characters.split(" ").map{Int(String($0))!}}.sort{$0[1]<$1[1]}) {
    time += AB[0]
    if time > AB[1] {
        ans = "No"
        break
    }
}
print(ans)