• + 0 comments
    if __name__ == '__main__':
        students = []
        for _ in range(int(input())):
            name = input()
            score = float(input())
            
            students.append([name, score])
            
        # Get the sorted list of unique scores
        scores = sorted(set(score for name, score in students))
    
        # Ensure there are at least two unique scores
        if len(scores) > 1:
            # The second lowest score would be the second element in the list
            second_lowest_score = scores[1]
            
            # Find all students with the second lowest score
            second_lowest_students = [name for name, score in students if score == second_lowest_score]
            
            # Sort the names alphabetically
            second_lowest_students.sort()
            
            # Print each student's name on a new line
            for student in second_lowest_students:
                # print(10*"-")
                print(student)
        else:
            print("There is no second lowest score.")