#C90. Total Value of Gemstones

    ID: 53044 Type: Default 1000ms 256MiB

Total Value of Gemstones

Total Value of Gemstones

You are given a collection of gemstones. Each gemstone has a specific value defined as follows: \(Diamond=100\), \(Ruby=50\), \(Sapphire=30\), \(Emerald=20\), and \(Amethyst=10\). Given the total count of gemstones and a list of gemstone names, calculate and output the total value of the gemstones.

Note: If a gemstone name is not among the five types specified, its value is considered \(0\).

inputFormat

The input is received from standard input (stdin) in the following format:

<integer n>
<gemstone1> <gemstone2> ... <gemstonen>

Here, \(n\) represents the number of gemstones, followed by \(n\) gemstone names separated by whitespace.

outputFormat

Output a single integer to standard output (stdout) which represents the total value of the gemstones in the collection.

## sample
5
Diamond Diamond Diamond Diamond Diamond
500

</p>