#include using namespace std; using ll = long long; int main(){ int n, x; cin >> n >> x; vector c(n); for(int i = 0; i < n; i++) cin >> c[i]; if(x>=c[0] && x<=c[n-1]){ cout << "Yes" << endl; return 0; }else{ cout << "No" << endl; return 0; } }