Anton's favourite geometric figures are regular polyhedrons. Note that there are five kinds of regular polyhedrons: 

  * Tetrahedron. Tetrahedron has 4 triangular faces. 
  * Cube. Cube has 6 square faces. 
  * Octahedron. Octahedron has 8 triangular faces. 
  * Dodecahedron. Dodecahedron has 12 pentagonal faces. 
  * Icosahedron. Icosahedron has 20 triangular faces. 



All five kinds of polyhedrons are shown on the picture below:

<image>

Anton has a collection of n polyhedrons. One day he decided to know, how many faces his polyhedrons have in total. Help Anton and find this number!

Input

The first line of the input contains a single integer n (1 ≤ n ≤ 200 000) — the number of polyhedrons in Anton's collection.

Each of the following n lines of the input contains a string si — the name of the i-th polyhedron in Anton's collection. The string can look like this:

  * "Tetrahedron" (without quotes), if the i-th polyhedron in Anton's collection is a tetrahedron. 
  * "Cube" (without quotes), if the i-th polyhedron in Anton's collection is a cube. 
  * "Octahedron" (without quotes), if the i-th polyhedron in Anton's collection is an octahedron. 
  * "Dodecahedron" (without quotes), if the i-th polyhedron in Anton's collection is a dodecahedron. 
  * "Icosahedron" (without quotes), if the i-th polyhedron in Anton's collection is an icosahedron. 

Output

Output one number — the total number of faces in all the polyhedrons in Anton's collection.

Examples

Input

4
Icosahedron
Cube
Tetrahedron
Dodecahedron


Output

42


Input

3
Dodecahedron
Octahedron
Octahedron


Output

28

Note

In the first sample Anton has one icosahedron, one cube, one tetrahedron and one dodecahedron. Icosahedron has 20 faces, cube has 6 faces, tetrahedron has 4 faces and dodecahedron has 12 faces. In total, they have 20 + 6 + 4 + 12 = 42 faces.
# --- 977A - Wrong Subtraction ---
#n, k = input().split()
#n, k = int(n), int(k)

# for i in range(0, k):
#    if n % 10 == 0:
#        n = n//10
#    else:
#        n -= 1
# print(n)


# --- 1030A - In Search of an Easy Problem ---
#people = int(input())
#responses = input()

# if "1" in responses:
#    print("HARD")
# else:
#    print("EASY")


# --- 791A - Bear and Big Brother ---
#a, b = input().split()
#a, b = int(a), int(b)
#yearElapsed = 0

# while a <= b:
#    a *= 3
#    b *= 2
#    yearElapsed += 1
# print(yearElapsed)


# --- 705A - Hulk ---
#layers = int(input())
#sentence = ""

# for i in range(1, layers + 1):
#    if i % 2 != 0:
#        sentence += "I hate "
#    elif i % 2 == 0:
#        sentence += "I love "

#    if i != layers:
#        sentence += "that "
#    elif i == layers:
#        sentence += "it"
# print(sentence)


# ---  -  ---
polyhedrons = []
resultValue = 0
polyhedronValues = {
    "Tetrahedron": 4,
    "Cube": 6,
    "Octahedron": 8,
    "Dodecahedron": 12,
    "Icosahedron": 20
}

amount = int(input())
for i in range(0, amount):
    polyhedrons.append(input())

for shape in polyhedrons:
    resultValue += polyhedronValues[shape]

print(resultValue)
