if __name__=="__main__":
f=open("sy6-7.txt","r")
st=f.readlines()
dic=dict()
for i in st:
inf=i.split(",")
dic.update({inf[0]:inf[1]})
while True:
st=input("请输入你要查询的人(如果不查询请输入stop):")
if(st=='stop'):
break
if(dic.get(st)==None):
print("查无此人",end="\n")
else :
print(dic[st],end="\n")
f.close()