x, y = gets.split.map {|c| c.to_i / 3.6 } # mps _ = gets a = gets.split.map(&:to_i) a.each_cons(2) do |r, s| time = r / x if y * time > s.to_f puts "NO" exit end end puts "YES"