Worker and Salary#9718

Worker and Salary

1 second
128 megabytes
Easy

Each worker got his salary. Your task is to print the salary for the given worker.

Input

The first line contains the number of workers . Each of the next lines contains information about a worker: his surname and salary. Then follow queries. Each of the next lines contains the surname of a worker for which you need to find the salary.

Output

For each query — the surname of a worker — print his salary. If the surname is not found in the list of workers, print .

Examples

Example 1

Loading
Loading