x,y,_,*s=gets(p).split.map &:to_i;
puts s.each_cons(2).any?{|a,b|b*x<a*y}?:NO: :YES