lib C
  fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64
end

class String
  def to_i64
    C.strtoll(self, nil, 10)
  end
end

n, x = read_line.split.map(&.to_i)
a = read_line.split.map(&.to_i)
puts a.any?(x) || (a.any? { |i| i > x } && a.any? { |i| i < x }) ? "Yes" : "No"