#include <cstdio> #include <iostream> #include <string> #include <map> using namespace std; map <string,string> myMap; int main(){ int n; scanf("%d\n",&n); while(n--){ string str; getline(cin,str); int pos=str.find(" "); string key=str.substr(0,pos); myMap[key]=str; } int m; scanf("%d",&m); while(m--){ string key; cin>>key; string answer=myMap[key]; if(answer==""){ printf("No Answer!\n"); }else{ cout<<answer<<endl; } } return 0; }