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