#include "bits/stdc++.h" using namespace std; using ll = long long; using P = pair; const ll INF = (1LL << 61); ll mod = (ll)1e9 + 7; signed main() { ios::sync_with_stdio(false); cin.tie(0); ll N, X; cin >> N >> X; vectorC(N); for (int i = 0; i < N; i++)cin >> C[i]; bool ok = false, ok2 = false; for (int i = 0; i < N; i++) { if (C[i] >= X) { ok = true; } if (C[i] <= X)ok2 = true; } if (ok&&ok2)cout << "Yes" << endl; else cout << "No" << endl; return 0; }