#line 1 "main.cpp" #include using namespace std; void solve() { int n, x; cin >> n >> x; bool pos = false, neg = false; while (n--) { int c; cin >> c; if (c == x) { cout << "Yes\n"; return; } (c > x ? pos : neg) = true; } cout << (pos && neg ? "Yes" : "No") << "\n"; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; }