#include <bits/stdc++.h>
using namespace std;
int main() {
int n,target;
cin>>n>>target;
vector<int> arr(n);
for(int i=0;i<n;i++){
cin>>arr[i];
}
int count=0;
int l=0,r=n-1;
while(l<=r){
int mid=(l+r)/2;
if(arr[mid]==target){
count=1;
break;
}if(arr[mid]<target){
l=mid+1;
}else{
r=mid-1;
}
}
if(count==1){
cout<<"True"<<endl;
}else{
cout<<"False"<<endl;
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCBuLHRhcmdldDsKCWNpbj4+bj4+dGFyZ2V0OwoJdmVjdG9yPGludD4gYXJyKG4pOwoJZm9yKGludCBpPTA7aTxuO2krKyl7CgkJY2luPj5hcnJbaV07Cgl9CglpbnQgY291bnQ9MDsKCWludCBsPTAscj1uLTE7Cgl3aGlsZShsPD1yKXsKCQlpbnQgbWlkPShsK3IpLzI7CgkJaWYoYXJyW21pZF09PXRhcmdldCl7CgkJCWNvdW50PTE7CgkJCWJyZWFrOwoJCX1pZihhcnJbbWlkXTx0YXJnZXQpewoJCQlsPW1pZCsxOwoJCX1lbHNlewoJCQlyPW1pZC0xOwoJCX0KCX0KCWlmKGNvdW50PT0xKXsKCQljb3V0PDwiVHJ1ZSI8PGVuZGw7Cgl9ZWxzZXsKCQljb3V0PDwiRmFsc2UiPDxlbmRsOwoJfQp9