def main(): N,X = map(int,input().split()) C = list(map(int,input().split())) if min(C) <= X <= max(C): print("Yes") else: print("No") if __name__ == '__main__': main()