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

Problem_ID: E
Result: Accepted
Time: 50ms
Memory: 25316kB
Author: 13566285241
In contest: 1300

x,y=map(int,input().split())
a={}
for i in range(x):
   s=input().split()
   a[int(s[0])]=[s[1]]
for t in range(y):
    print (a[int(input())][0],end=" ")