N,X=map(int,input().split()) C=list(map(int,input().split())) max_c,min_c=max(C),min(C) if min_c<=X<=max_c: print("Yes") else: print("No")