#C7402. Total Monster Points

    ID: 51270 Type: Default 1000ms 256MiB

Total Monster Points

Total Monster Points

Nick has been fighting monsters and accumulating points. Each defeated monster gives a fixed number of points: (\text{Goblin}=5), (\text{Troll}=10), (\text{Dragon}=50), (\text{Ogre}=30), and (\text{Lich}=100). Given a list of monsters Nick has defeated, calculate the total points he earns.

Input is provided from standard input (stdin) where the first line contains an integer (n) (the number of monsters), followed by (n) lines each containing the name of a monster. Output the total points as an integer to standard output (stdout).

For example, if the input is:
5
Lich
Goblin
Dragon
Goblin
Ogre
then the output should be:
190

inputFormat

The first line of input contains a single integer (n), representing the number of monsters. Each of the next (n) lines contains a string representing the name of a monster. The possible monster names are: Goblin, Troll, Dragon, Ogre, and Lich.

outputFormat

Output a single integer which is the total points earned by Nick based on the defeated monsters.## sample

5
Lich
Goblin
Dragon
Goblin
Ogre
190