n, x = map(int, input().split()) c = list(map(int, input().split())) if n == 1: print("Yes" if c[0] == x else "No") else: min_c = c[0] max_c = c[-1] print("Yes" if min_c <= x <= max_c else "No")