• + 0 comments

    n = []

    for _ in range(int(input())): name = input() score = float(input()) n.append([name, score])

    second_lowest = sorted({score for _, score in n})[1]

    for name, score in sorted(n): if score == second_lowest: print(name)