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