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

#871. Pizza place: order total

Pizza place prices: `margarita` = 18000₮, `pepperoni` = 22000₮, `juice` = 3000₮, `cola` = 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
margarita 1
pepperoni 5
pepperoni 4
juice 4
Output
228000
Input
3
margarita 5
juice 4
pepperoni 4
Output
190000

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