#include using namespace std; int main() { int n,x,c,low = 0,high = 0,just = 0; cin >> n >> x; for(int i = 0;i < n;i++){ cin >> c; if(c == x)just++; else if(c < x)low++; else high++; } if(just > 0 || low > 0 && high >> 0)cout << "Yes" << endl; else cout << "No" << endl; }