#yuki1395 N,X = map(int,input().split()) A = list(map(int,input().split())) if min(A) <= X <= max(A): print("Yes") else: print("No")