#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, x; cin >> n >> x; bool hi = false, lo = false; for (int i = 0; i < n; i++) { int a; cin >> a; if (a >= x) { hi = true; } if (a <= x) { lo = true; } } cout << (hi && lo ? "Yes" : "No") << endl; return 0; }