• + 0 comments
    if __name__ == '__main__':
        students={}
        for _ in range(int(input())):
            name = input()
            score = float(input())
            students[name]=score
    
        min_value = min(students.values())
        students = {k: v for k, v in students.items() if v>min_value}
        min_value = min(students.values())
        students_names = dict(filter(lambda item: item[1]==min_value,students.items()))
        students_names = sorted(students_names.keys())
        for st in students_names:
            print(st)