PROGRAMMING:Looking for friends
After graduating from primary school, the students entered different junior high schools. Xiao Ming missed his friends very much, so he planned to contact the students in primary school.
Now he got all the names of a junior high school in the city and found out Xiao Ming's friends.
###Input format:
The first line is an integer n, which represents the number of junior high school students.
Next N lines, each line of a string, only lowercase letters, representing the school everyone's Pinyin. The data guarantee that no one has the same Pinyin, and has been sorted from small to large according to the dictionary order.
In line n + 2, there is an integer m, which represents the number of Xiaoming's friends.
Finally, m lines, each line of a string, only lowercase letters, each partner's Pinyin, also ensure that there is no repetition.
###Output format:
Output Pinyin of all the students in the school.
One Pinyin for each line, in the order given by my friends.
###Input example:
```in
three
alice
bob
zhangsan
two
lisi
zhangsan
```
###Output example:
```out
zhangsan
```
Data range: for 70% of the data, n < = 1000, m < = 100
For 100% of the data, n < = 100000, m < = 10000, and the length of each person's Pinyin is no more than 15. < br > < br > < br > < br > < br > for 100% of the data, n < = 100000, m < = 10000
answer:If there is no answer, please comment
Now he got all the names of a junior high school in the city and found out Xiao Ming's friends.
###Input format:
The first line is an integer n, which represents the number of junior high school students.
Next N lines, each line of a string, only lowercase letters, representing the school everyone's Pinyin. The data guarantee that no one has the same Pinyin, and has been sorted from small to large according to the dictionary order.
In line n + 2, there is an integer m, which represents the number of Xiaoming's friends.
Finally, m lines, each line of a string, only lowercase letters, each partner's Pinyin, also ensure that there is no repetition.
###Output format:
Output Pinyin of all the students in the school.
One Pinyin for each line, in the order given by my friends.
###Input example:
```in
three
alice
bob
zhangsan
two
lisi
zhangsan
```
###Output example:
```out
zhangsan
```
Data range: for 70% of the data, n < = 1000, m < = 100
For 100% of the data, n < = 100000, m < = 10000, and the length of each person's Pinyin is no more than 15. < br > < br > < br > < br > < br > for 100% of the data, n < = 100000, m < = 10000
answer:If there is no answer, please comment