is getting bullied for using Python 3. Help cheer him up by creating a program that tells him the alphabet score of a word.
A word's alphabet score is the occurrence of each letter times the place that letter is in the alphabet. For example, the string
ab gives ~3~ because there is one
a, and it is the first letter in the alphabet. So
a's alphabet score ~1 \times 1 = 1~. Next, there is one
b, and because
b is the second letter in the alphabet,
b's alphabet score is ~1 \times 2 = 2~. Therefore the string's alphabet score is ~1 + 2 = 3~.
Also, you must code it in Python 3.
You will receive one line of input containing a non-empty string ~S~. It will only contain lowercase letters.
~1 \le |S| \le 8 \times 10^6~
Output the alphabet score of the string.
Subtask 1 [60%]
~1 \le |S| \le 10^6~
Subtask 2 [40%]
No additional constraints.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2