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