Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训扩展练习
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 47ms
Memory: 25196kB
Author: 13758380235
In contest: 1296

m=list(map(int,(input().split())))
d={}
for i in range(m[0]):
    a = input().split()
    d[a[0]]=a[1]
for j in range(m[1]):
    b=input()
    print(d[b],end=" ")