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