Each worker got his salary. Print the salary for the given worker.
The first line contains number of workers. Each of the next lines contains information about worker: surname and his salary. Then given number of queries . Each of the next lines contains surname of the worker.
For each query — surname of the worker — print his salary. If query person does not exist in the list of workers, print .