import java.util.*;
public class Question{
public static void main(String args[] ){
int count = 0;
int[ ] score = {1,3,3,2,1,4,2,4,1,8,5,1,3,1,1,3,10,1,1,1,1,4,4,8,4,10};
char[ ] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
String s = "Hello There!";
s = s.toLowerCase();
System.out.println(s);
for(int i = 0; i<s.length();i++)
{
// this tests to see if the symbol at the position of the String at i is a letter
if((Character.isLetter(s.charAt(i))) == true)
{
int a = score[s.charAt(i) - 'a'];
// this is to test if the length of the String is divisible by 4 with remainder of 0
if( s.length() % 4 == 0)
{
// if the above condition is true then multiply the score corresponding to the letter by 2
a = a*2;
}
count= count + a;
}
}
System.out.println(s + " " + count);
}
}