#include using namespace std;int main(){int n,m;cin>>n>>m;mapr;vectora(n),b(m);for(auto&e:a)cin>>e,++r[e];for(auto&e:b)cin>>e,cout<