#include #include #include using namespace std; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } int main() { int N; cin >> N; int X; cin >> X; vectorvec(N); bool is_can = false; for (int i=0; i> vec.at(i); if (vec[i] == X) { is_can = true; } } if (is_can) { cout << "Yes" << endl; } else { sort(vec.begin(), vec.end()); if (vec[0] < X && vec[N-1] > X) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }