• + 0 comments

    l1=[] n=int(input()) for i in range(n): name = input() score = float(input()) score2 = f"{score:.2f}" l=[] l.append(name) l.append(score2) l1.append(l) l3=[] for i in range(n): l3.append(l1[i][1]) l3.sort() l4=[] for i in range(n): if(l3[2]==l1[i][1]): s=l1[i][0] l4.append(s) l4.sort() for i in l4: print(i)