n,x=map(int,input().split()) L=list(map(int,input().split())) print("Yes" if x in L or (min(L)