x=gets.split.map(&:to_i) n=gets.to_i a=gets.split.map(&:to_f) for i in 0...n-1 do if (a[i+1]/x[1])<(a[i]/x[0]) puts "NO" exit end end puts "YES"