Each worker receives a salary, which may be changed during the year. Print the surnames of all workers and their final salary at the end of the year, sorted in increasing order by surname.
Each line contains information about a worker: their surname and their salary. If a worker appears again in the list, it means their salary has changed.
Print the surnames and final salaries of all workers at the end of the year in increasing order of surname.
Example 1