#include <bits/stdc++.h>   using namespace std;   int main() {     int n;     int cnt = 0;     cin >> n;     string a;     for (int i = 0; i < n; i++) {       cin >> a;       if (a ==  Tetrahedron )         cnt += 4;       else if (a ==  Cube )         cnt += 6;       else if (a ==  Octahedron )         cnt += 8;       else if (a ==  Dodecahedron )         cnt += 12;       else         cnt += 20;     }     cout << cnt;     return 0;   }   