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