13308 - How much is the string worth   

Description

In this problem, we define a worth 1 coin, b worth 2 coins, c worth 3 coins ...., z worth 26 coins, other charactor worth 0 coin.
Now we have some lines of string S (may contain spaces), you need to write a program to calculate how much each line is worth until S0.

Hint:
0_ and _0 ( _ = space) worth 0, not the end of input

Input

The input contains several lines, each line contains a string (may contain space)

testcases:

0 <=  |S| <= 100

Output

Output the value of each line of string until S = 0.

Sample Input  Download

Sample Output  Download

Tags




Discuss