#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; cin >> N >> X; if(N == 1){ if(N == 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"; } }