N, X = map(int, input().split()) P = list(map(int, input().split())) print(['No', 'Yes'][P[0] <= X <= P[-1]])