n, x = map(int, input().split()) a = [int(v) for v in input().split()] print("Yes" if min(a) <= x <= max(a) else "No")