N,X=map(int,input().split()) C=list(map(int,input().split())) C.sort() if X>=C[0] and X<=C[-1]: print('Yes') else: print('No')