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