N,X=map(int,input().split()) C=list(map(int,input().split())) if X in C: print("Yes") else: if min(C)