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: 73ms
Memory: 25196kB
Author: 2018212212087
In contest: 1300

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