n, x = map(int, input().split()) dat = list(map(int, input().split())) mi = min(dat) ma = max(dat) if mi <= x <= ma: print("Yes") else: print("No")