CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #879 #881 →

#880. Grocery store: order total

Grocery store prices: `talh` = 2000₮, `suu` = 2800₮, `ondog` = 450₮, `tos` = 7000₮. 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
3
tos 2
talh 4
ondog 2
Output
22900
Input
5
talh 2
suu 4
ondog 4
tos 3
tos 4
Output
66000

💡 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.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!