list=[]
while 1:
name=input("同学姓名:")
if name == "":
break
if name in list:
print("姓名已存在")
else:
list.append(name)
# print(list)
s={}
while 1:
name=input("同学姓名:")
height=input("同学身高:")
if name == "":
break
if name not in s:
s[name]=height
if height==max(s.values()):
print("最高的同学是"+name)
else:
print("身高高于"+name+"的同学有:")
for n in s:
if height<s[n]:
print(n+","+s[n])
continue
# print(s)