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.
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class ProblemSolving {
	static Scanner s=new Scanner(System.in);
	
	public int GetMax(List arr) {
		int maxValue = (int) arr.get(0); 
	    for(int i=1;i < arr.size();i++){ 
	      if((int)arr.get(i) > maxValue){ 
	         maxValue = (int)arr.get(i); 
	      } 
	    } 
	    return maxValue; 
	
	}

	public int GetMin(List arr) {
		int minValue =(int) arr.get(0);
	    for(int i=1;i < arr.size();i++){ 
	      if((int)arr.get(i)<minValue){ 
	         minValue = (int)arr.get(i); ; 
	      } 
	    } 
	    return minValue; 
	
	}
	
	public int General(){
		
		int Result=0;
		int n= s.nextInt();
		String Shape;
		while(n>0) {
			Shape=s.next();
			if(Shape.charAt(0)=='T')
				Result+=4;
			else if(Shape.charAt(0)=='C')
				Result+=6;
			else if(Shape.charAt(0)=='O')
				Result+=8;
			else if(Shape.charAt(0)=='D')
				Result+=12;
			else
				Result+=20;
			n--;
		}
		
		
		
		return Result;
	}

	public static void main(String[] args) {
		ProblemSolving PS= new ProblemSolving();
		System.out.println(PS.General());
	

	}

}
