#include #include using namespace std; using namespace atcoder; #define MOD 1000000007 #define MOD99 998244353 int main() { int n,x,c,high = 0,low = 0; cin >> n >> x; for(int i = 0;i < n;i++){ cin >> c; if(i == 0)low = c; if(i == n - 1)high = c; } if(low <= x && x <= high)cout << "Yes" << endl; else cout << "No" << endl; }