A. Anton and Polyhedrons
time limit per test:2 seconds
memory limit per test:256 megabytes
input:standard input
output:standard output
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:
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 —