n,x=map(int,input().split()) A=list(map(int,input().split())) print('Yes' if min(A)<=x and max(A)>=x else 'No')