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 s_{i} — 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.

Difficulty: interview

Starter code:

Solutions:
import sys

cnt = {
        "Tetrahedron": 4,
        "Cube": 6,
        "Octahedron": 8,
        "Dodecahedron": 12,
        "Icosahedron": 20}

n = int(input())
c = 0

for _ in range(n):
    s = input()
    c += cnt[s]

print(c)


n = int(input())

r = 0
for i in range(n):
	s = input().strip()
	if s == 'Tetrahedron':
		r += 4
	elif s == 'Cube':
		r += 6
	elif s == 'Octahedron':
		r += 8
	elif s == 'Dodecahedron':
		r += 12
	elif s == 'Icosahedron':
		r += 20

print(r)

n = int(input())
d = {'T':4, 'C':6, 'O':8, 'D':12, 'I':20}
ans = 0
for _ in range(n):
    ans += d[input()[0]]
print(ans)


"""
ATSTNG's ejudge Python3 solution template
(actual solution is below)
"""
import sys, queue, string, math

try:
    import dev_act_ffc429465ab634  # empty file in directory
    DEV = True
except:
    DEV = False

def log(*s):
    if DEV: print('LOG', *s)

class EJudge:
    def __init__(self, problem="default", reclim=1<<30):
        self.problem = problem
        sys.setrecursionlimit(reclim)

    def use_files(self, infile='', outfile=''):
        if infile!='':
            self.infile = open(infile)
            sys.stdin = self.infile
        if infile!='':
            self.outfile = open(outfile, 'w')
            sys.stdout = self.outfile

    def use_bacs_files(self):
        self.use_files(self.problem+'.in', self.problem+'.out')

    def get_tl(self):
        while True: pass

    def get_ml(self):
        tmp = [[[5]*100000 for _ in range(1000)]]
        while True: tmp.append([[5]*100000 for _ in range(1000)])

    def get_re(self):
        s = (0,)[8]

    def get_wa(self, wstr='blablalblah'):
        for _ in range(3): print(wstr)
        return

class IntReader:
    def __init__(self):
        self.ost = queue.Queue()

    def get(self):
        return int(self.sget())

    def sget(self):
        if self.ost.empty():
            for el in input().split():
                self.ost.put(el)
        return self.ost.get()

    def release(self):
        res = []
        while not self.ost.empty():
            res.append(self.ost.get())
        return res

def tokenized(s):
    """ Parses given string into tokens with default rules """
    word = []

    for ch in s.strip():
        if ch == ' ':
            if word: yield ''.join(word); word = []
        elif 'a' <= ch <= 'z' or 'A' <= ch <= 'Z' or '0' <= ch <= '9':
            word.append(ch)
        else:
            if word: yield ''.join(word); word = []
            yield ch

    if word: yield ''.join(word); word = []

###############################################################################
ej = EJudge(  )
int_reader = IntReader()
fmap = lambda f,*l: list(map(f,*l))
parse_int = lambda: fmap(int, input().split())

# input

fig = {
    'Tetrahedron': 4,
    'Cube': 6,
    'Octahedron': 8,
    'Dodecahedron': 12,
    'Icosahedron': 20,
}

ans = 0
for _ in range(int(input())):
    ans += fig[input().strip()]
print(ans)

















n = int(input())

ans = 0
for i in range(n):
    s = input().lower()[0]
    if s == 't':
        ans += 4
    elif s == 'c':
        ans += 6
    elif s == 'o':
        ans += 8
    elif s == 'd':
        ans += 12
    else:
        ans += 20
        
print(ans)        

n = int(input())

ans = 0
for i in range(n):
    s = input()
    if s == 'Tetrahedron':
        ans += 4
    elif s == 'Cube':
        ans += 6
    elif s == 'Octahedron':
        ans += 8
    elif s == 'Dodecahedron':
        ans += 12
    else:
        ans += 20
        
print(ans)

n = int(str(input()).strip())
d = {'Tetrahedron': 4, 'Cube': 6, 'Octahedron': 8, 'Dodecahedron': 12, 'Icosahedron': 20}
ans = 0
for _ in range(n):
    ans += d[str(input()).strip()]
print(ans)


#!/bin/python3

import sys
n = int(input())
d = {"Tetrahedron":4, "Cube":6,"Octahedron":8,"Dodecahedron":12,"Icosahedron" :20};
ans = 0
for i in range(n):
    name  = input()
    ans += d[name];
print(ans)

d = {
        'Tetrahedron': 4,
        'Cube': 6,
        'Octahedron': 8,
        'Dodecahedron': 12,
        'Icosahedron': 20
        }
n = int(input())
r = 0
for _ in range(n):
    r += d[input()]

print(r)



import math
import itertools


def ria():
    return [int(i) for i in input().split()]


mp = {'tetrahedron':4,
      'cube': 6,
      'octahedron':8,
      'dodecahedron':12,
      'icosahedron':20}

sz = ria()[0]
suma = 0
for i in range(sz):
    suma += mp[str(input()).lower()]
print(suma)

def main():
	n = int(input())

	d = {}
	d['Tetrahedron'] = 4
	d['Cube'] = 6
	d['Octahedron'] = 8
	d['Dodecahedron'] = 12
	d['Icosahedron'] = 20

	ans = 0
	for i in range(n):
		t = input()
		ans += d[t]

	print(ans)
	return

def __starting_point():
	main()
__starting_point()

d = {}
d['Tetrahedron'] = 4
d['Cube'] = 6
d['Octahedron'] = 8
d['Dodecahedron'] = 12
d['Icosahedron'] = 20

print(sum([d[input()] for _ in range(int(input()))]))


d = {'Tetrahedron':4, 'Cube':6, 'Octahedron':8, 'Dodecahedron':12, 'Icosahedron':20}
n = int(input())
ans = 0
for i in range(n):
    s = input()
    ans += d[s]
print(ans)

n = int(input())

cnt = {"Tetrahedron":4,
       "Cube": 6,
       "Octahedron": 8,
       "Dodecahedron": 12,
       "Icosahedron": 20}

ans = 0
for i in range(n):
    name = input()
    ans += cnt[name]

print(ans)

n=int(input())
ans=0
for _ in range(n):
    s=input()
    if s=='Tetrahedron': ans+=4
    elif s=='Cube': ans+=6
    elif s=='Octahedron': ans+=8
    elif s=='Dodecahedron': ans+=12
    else: ans+=20
print(ans)

from sys import stdin, stdout
 
n = int(stdin.readline())
ans = 0

for i in range(n):
    s = stdin.readline().strip()
    
    if s[0] == 'T':
        ans += 4
    elif s[0] == 'C':
        ans += 6
    elif s[0] == 'O':
        ans += 8
    elif s[0] == 'D':
        ans += 12
    elif s[0] == 'I':
        ans += 20


stdout.write(str(ans))

n = int(input())
o = 0
for i in range(n):
    s = input()
    if s == "Tetrahedron":
        o += 4
    elif s == "Cube":
        o += 6
    elif s == "Octahedron":
        o += 8
    elif s == "Dodecahedron":
        o += 12
    else:
        o += 20
print(o)


n = int(input())
ans = 0
for i in range(n):
    s = input()
    if s == "Tetrahedron":
        ans += 4
    elif s == "Cube":
        ans += 6
    elif s == "Octahedron":
        ans += 8
    elif s == "Dodecahedron":
        ans += 12
    else:
        ans += 20
print(ans)

a = {"Tetrahedron":4, "Cube":6, "Octahedron": 8, "Dodecahedron": 12, "Icosahedron": 20}
n = int(input())
s = 0
for _ in range(0,n):
    s+=a[input()]
print(s)


n = int(input())
s = 0
for i in range(n):
	current = input()
	if current == "Tetrahedron":
		s += 4
	elif current == "Cube":
		s += 6
	elif current == "Octahedron":
		s += 8
	elif current == "Dodecahedron":
		s += 12
	else:
		s += 20
print(s)


n=int(input())
d=0
for i in range(n):
    s=input()
    if(s=="Tetrahedron"):
        d=d+4
    elif(s=="Cube"):
        d=d+6
    elif(s=="Octahedron"):
        d=d+8
    elif(s=="Dodecahedron"):
        d=d+12
    else:d=d+20
print(d)


V = {
    "Tetrahedron": 4,
    "Cube": 6,
    "Octahedron": 8,
    "Dodecahedron": 12,
    "Icosahedron": 20
}

n = int(input())
res = 0

for i in range(n):
    p = input()
    res += V[p]

print(res)

__author__ = 'zihaozhu'
from sys import stdin

cases = int(stdin.readline())

total = 0
for i in range(cases):
    shape = stdin.readline().rstrip()
    if shape=="Tetrahedron":
        total+= 4
    elif shape == "Cube":
        total += 6
    elif shape == "Octahedron":
        total += 8
    elif shape == "Dodecahedron":
        total += 12
    elif shape == "Icosahedron":
        total += 20
print(total)


m = {"Tetrahedron": 4, "Cube": 6, "Octahedron": 8, "Dodecahedron": 12, "Icosahedron": 20}
n = int(input())
res = 0
for i in range(n):
    s = input()
    res += m[s]
print(res)


data = {
    'Tetrahedron':4,
    'Cube':6,
    'Octahedron':8,
    'Dodecahedron':12,
    'Icosahedron':20
}
n = int(input())
ans = 0
for _ in range(0,n):
    s = input()
    ans = ans + data[s]
print(ans)