#K47057. Scrabble Score Calculator

    ID: 28113 Type: Default 1000ms 256MiB

Scrabble Score Calculator

Scrabble Score Calculator

You are given a single word, and your task is to calculate its Scrabble score. In the game of Scrabble, each letter has a point value. The score of a word is the sum of the points of its individual letters.

The point values for each letter are given by the following formula in LaTeX:

$$ \begin{array}{ll} \text{1 point:} & A, E, I, O, U, L, N, S, T, R \\ \text{2 points:} & D, G \\ \text{3 points:} & B, C, M, P \\ \text{4 points:} & F, H, V, W, Y \\ \text{5 points:} & K \\ \text{8 points:} & J, X \\ \text{10 points:} & Q, Z \\ \end{array} $$

Your task is to implement a program that reads the word from stdin and then prints the corresponding score to stdout.

Note: The letters in the input might be in either uppercase or lowercase. Your program should treat them equivalently.

inputFormat

The input consists of a single line containing a string word (possibly empty) representing the word for which you need to calculate the Scrabble score.

Each letter in the word may be in uppercase or lowercase.

outputFormat

Output a single integer which is the calculated Scrabble score of the given word.

## sample
HELLO
8