N, X = map(int, input().split()) C = list(map(int, input().split())) print('Yes' if min(C) <= X <= max(C) else 'No')