import sys sys.setrecursionlimit(10 ** 7) input = sys.stdin.readline f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): n, x = map(int, input().split()) C = list(map(int, input().split())) max_c = max(C) min_c = min(C) if min_c <= x <= max_c: print("Yes") else: print("No") if __name__ == '__main__': resolve()