n, m = gets.split.map &:to_i t, x = 0, 0 n.times do a, b = gets.split.map &:to_i if (x - b).abs > a - t puts :No return end t, x = a, b end puts :Yes