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

#837. Cafe: order total

Cafe prices: `tsai` = 1000₮, `buuz` = 1500₮, `huushuur` = 2000₮, `salad` = 3500₮. 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
tsai 1
salad 2
huushuur 5
Output
18000
Input
1
salad 3
Output
10500

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