#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<set>
using namespace std;
const int maxn=10010;
const int N=10;
int main(){
vector<int> v;
v.push_back(1);
v.push_back(1);
v.push_back(1);
v.push_back(4);
cout<<lower_bound(v.begin(),v.end(),2)-v.begin();
set<int> st;
st.lower_bound()
return 0;
}
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
const int maxn=10010;
const int N=10;
int a[maxn];
int main(){
int n,q,x;
int kase=0;
while(scanf("%d%d",&n,&q)!=-1&&n){
printf("%d",++kase);
for(int i=0;i<n;i++) scanf("%d",a+i);
sort(a,a+n);
while(q--){
scanf("%d",&x);
int p=lower_bound(a,a+n,x)-a;
if(p<n&&a[p]==x) printf("%d found at %d\n",x,p+1);
else printf("%d not found\n",x);
}
}
return 0;
}