#include <iostream> #include <iostream> using namespace std; struct Student{ string num; string name; string sex; int age; }; Student stu[1010]; int main () { int n; while (cin >> n){ for (int i = 0; i < n; i++){ cin >> stu[i].num >> stu[i].name >> stu[i].sex >> stu[i].age; } int m, j; string findnum; cin >> m; for (int i = 0; i < m; i++){ cin >> findnum; for (j = 0; j < n; j++){ if (findnum == stu[j].num){ cout << stu[j].num << " " << stu[j].name << " " << stu[j].sex << " " << stu[j].age << endl; break; } } if (j == n){ cout << "No Answer!" << endl; } } } return 0; }