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