r=gets.split[1].to_i cc=gets.split.map(&:to_i) puts cc.min < r && r < cc.max || cc.size == 1 && cc[0] == r ? "Yes" : "No"