N, X = map(int, input().split()) C = tuple(map(int, input().split())) print('Yes' if C[0] <= X <= C[-1] else 'No')