X,Y,N,*A = $<.to_a.join(' ').split.map(&:to_i) puts A.each_cons(2).none?{|i,j| Y * i >= j * X } ? :YES : :NO