n,x = map(int,input().split()) C = list(map(int,input().split())) if max(C) >= x >= min(C): print("Yes") else: print("No")