n, x = map(int, input().split()) A = list(map(int, input().split())) print("Yes" if min(A) <= x <= max(A) else "No")