n,x=map(int,input().split()) C=list(map(int,input().split())) if min(C)<=x<=max(C): print("Yes") else: print("No")