#include<bits/stdc++.h>
using namespace std;
int main(){
//write your code here......
vector<int> v;
int m, n;
cin >> n >> m;
for(int i = 0; i < n; i++)
{
int num = 0;
cin >> num;
v.push_back(num);
}
while(m > 0)
{
int target = 0;
cin >> target;
auto it = std::find(v.begin(), v.end(), target);
if(it != v.end())
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
m--;
}
return 0;
}

京公网安备 11010502036488号