#include using namespace std; using ll = long long int; using ld = long double; const ll MAX = 5000000000000000000; ll MOD = 1000000007; int main(){ ll N,X,p; cin >> N >> X; if(N == 1){ cin >> p; if(p == X) cout << "Yes\n"; else cout << "No\n"; } else{ vector C(N); for(ll i = 0;i < N;i++) cin >> C[i]; if(C[0] <= X && X <= C[N - 1]) cout << "Yes\n"; else cout << "No\n"; } }