import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = sc.nextInt(); int[] ci = new int[n]; boolean flag_equal = false; boolean flag_smaller = false; boolean flag_bigger = false; for (int i=0; i < n; i ++) { ci[i] = sc.nextInt(); if (ci[i] == x) {flag_equal = true;} if (ci[i] > x) {flag_bigger = true;} if (ci[i] < x) {flag_smaller = true;} } sc.close(); if (flag_equal == true) { System.out.println("Yes"); }else if (flag_bigger ==true && flag_smaller == true) { System.out.println("Yes"); }else { System.out.println("No"); } } }