len,input = gets.chomp.split(" ").map(&:to_i) current = 0 res = "Yes" input.times do |i| t,p = gets.chomp.split(" ").map(&:to_i) sa = t - current min = current - sa max = current + sa if (min..max).include?(p) current = p else res = "No" break end end puts res