• + 0 comments

    if name == 'main': li=[] for _ in range(int(input())): name = input() score = float(input()) li.append([score,name]) # separating the name and the score score=[x[0] for x in li] name=[x[1] for x in li] #for the sec low ele transfer to set s=set(score) ele=sorted(s)[1] n=[] count=-1 # checking if ele is in score then append this corresponding name for that use count to track for i in score : if i==ele: count+=1 n.append(name[count]) n.sort() for a in n: print(a)