• + 0 comments
    if __name__ == '__main__':
        python_students =[]
        marks =[]
        for _ in range(int(input())):
            student_data = []
            name = input()
            student_data.append(name)
            score = float(input())
            marks.append(float(score))
            student_data.append(score)
            python_students.append(student_data)
    
        python_students.sort()
        second_lowest = sorted(set(marks))
        for elements in python_students:
            if(elements[1] == second_lowest[1]):
                print(elements[0])