14286 - Check, please   

Description

Create a program that calculates the total cost of an order in a restaurant based on the prices of items.

In a restaurant, the prices of items are as follows:

  • "Steak": 500 NT dollars each
  • "Pasta": 300 NT dollars each
  • "Salad": 200 NT dollars each

Input

The first line contains an integer n (1 <= n <= 100), the number of items in the order.

The following n lines each contain a string s, representing an item in the order.

Output

A single line indicates the total cost of the order in NT dollars.

Sample Input  Download

Sample Output  Download

Tags




Discuss