N, X = gets.split.map(&:to_i) C = gets.split.map(&:to_i) min, max = C.minmax if (min..max).include?(X) puts 'Yes' else puts 'No' end