def fun(x): c = [*map(int, input().split())] if min(c) <= x <= max(c): return "Yes" return "No" _, x = map(int, input().split()) print(fun(x))