n,x,*c = map(int,open(0).read().split())
print("Yes" if min(c) <= x <= max(c) else "No")