N,X = map(int,input().split()) C = list(map(int,input().split())) if max(C) < X: print("No") elif min(C) > X: print("No") else: print("Yes")