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: 51ms
Memory: 25200kB
Author: 15258406436
In contest: 1296

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