#P9300. Chili Pepper Spiciness
Chili Pepper Spiciness
Chili Pepper Spiciness
Ron is cooking chili using an assortment of peppers. Each pepper has its own spiciness measured in Scolville Heat Units (SHU). When Ron adds a pepper to his chili, the total spiciness increases by the SHU value of that pepper. The available peppers and their corresponding SHU values are given in the table below:
Pepper Name | Scolville Heat Units |
---|---|
Poblano | $1500$ |
Mirasol | $6000$ |
Serrano | $15500$ |
Cayenne | $40000$ |
Thai | $75000$ |
Habanero | $125000$ |
The chili starts with a spiciness of 0 SHU. Given the list of peppers Ron adds, compute the final total spiciness of the chili.
inputFormat
The input begins with an integer N
which denotes the number of peppers Ron adds. The following N
lines each contain a single pepper name. Each pepper name will be one of the following: Poblano
, Mirasol
, Serrano
, Cayenne
, Thai
, or Habanero
.
Constraints: 1 ≤ N ≤ 106
outputFormat
Output a single integer representing the total spiciness of the chili in Scolville Heat Units (SHU) after all peppers have been added.
sample
3
Poblano
Serrano
Thai
92000