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