#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; bool a = false, b = false, c = false; int main() { int n, x; cin >> n >> x; for (int i = 0; i < n; i++) { int d; cin >> d; if (x == d) { b = true; } else if (x > d) { a = true; } else { c = true; } } if (b || (a & c)) { cout << "Yes" << endl; } else { cout << "No" << endl; } }