The restaurant decided to find out the number of unique customers and how much each of them paid. Write a program that accepts a dictionary with customers and returns unique customers and their total costs in the institution.
Input format
The first line contains a single number of n & mdash; The number of transactions records. Each of the following n lines contains the name of the client (line without spaces) and the amount of purchase (an integer), separated by a gap.
Output format
One line containing the python dictionary, where the keys & mdash; These are unique customer names, and values & mdash; Their total costs.
Example
Input
4
Peter 300
Anna 150
Peter 100
Anna 400
Output
{'Peter': 400, 'Anna': 550}
Hint
There will be no clue here, decide for yourself!