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