#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int32_t n, x; cin >> n >> x; int32_t mn = numeric_limits::max(), mx = numeric_limits::min(); for (auto i = 0; i < n; ++i) { int32_t c; cin >> c; mn = min(mn, c); mx = max(mx, c); } cout << ((mn <= x && x <= mx) ? "Yes" : "No") << endl; return 0; }