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 because there is one
a, and it is the first letter in the alphabet. So
a's alphabet score . Next, there is one
b, and because
b is the second letter in the alphabet,
b's alphabet score is . Therefore the string's alphabet score is .
Also, you must code it in Python 3.
You will receive one line of input containing a non-empty string . It will only contain lowercase letters.
Output the alphabet score of the string.
Subtask 1 [60%]
Subtask 2 [40%]
No additional constraints.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2