#include using namespace std; #if __has_include() #include using namespace atcoder; #endif #define GET_MACRO(_1, _2, _3, NAME, ...) NAME #define _rep(i, n) _rep2(i, 0, n) #define _rep2(i, a, b) for(int i = (int)(a); i < (int)(b); i++) #define rep(...) GET_MACRO(__VA_ARGS__, _rep2, _rep)(__VA_ARGS__) #define all(x) (x).begin(), (x).end() #define i64 long long template bool chmin(T& a, const T& b) { return (b < a) ? (a = b, true) : false; } template bool chmax(T& a, const T& b) { return (b > a) ? (a = b, true) : false; } int main() { int n, x; cin >> n >> x; vector c(n); rep(i, n) cin >> c[i]; auto m = *max_element(all(c)); if(m < x) cout << "No" << endl; else cout << "Yes" << endl; }