n,m=gets.split.map &:to_i
a=m.times.map{gets.split.map &:to_i}
puts a.each_cons(2).all?{|(a,b),(c,d)|(a-c).abs>=(b-d).abs}?"Yes":"No"