#887. Stationery shop: order total
Stationery shop prices: `devter` = 1200₮, `bal` = 500₮, `harandaa` = 300₮, `baga` = 2500₮. You get n order lines as `item count`. Use a dictionary to find the total cost.
### Input
n, then n lines.
### Output
The total cost.
Examples
Input
4 baga 3 devter 1 baga 3 bal 4
Output
18200
Input
4 baga 1 harandaa 1 bal 5 harandaa 3
Output
6200
💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.