N, X = map(int, input().split()) C = list(map(int, input().split())) if X in C: print("Yes") elif min(C) <= X <= max(C): print("Yes") else: print("No")