n,x = map(int,input().split()) a = list(map(int,input().split())) a.sort() t_1 = False t_2 = False for i in range(n): if a[i] <= x: t_1 = True if a[i] >= x: t_2 = True if t_1 and t_2: print("Yes") else: print("No")