#include using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; static const double EPS = 1e-12; static const double PI = acos(-1.0); template using V = vector; template using VV = V>; #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(a) (a).begin(), (a).end() #ifdef LOCAL #define dbg(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl #else #define dbg(x) true #endif int main() { int n, x; cin >> n >> x; vector c(n); REP(i, n) { cin >> c[i]; } sort(ALL(c)); cout << ((c[0] <= x && x <= c[n - 1]) ? "Yes" : "No") << endl; return 0; }