<image>

You can preview the image in better quality by the link: [http://assets.codeforces.com/files/656/without-text.png](//assets.codeforces.com/files/656/without-text.png)

Input

The only line of the input is a string (between 1 and 50 characters long, inclusive). Each character will be an alphanumeric character or a full stop ".".

Output

Output the required answer.

Examples

Input

Codeforces


Output

-87


Input

APRIL.1st


Output

17
result = 0
for i, x in enumerate(input()):
    compare_1 = '@' < x
    compare_2 = '[' > x
    compare_3 = '`' < x
    compare_4 = '{' > x
    and_1 = compare_1 and compare_2
    and_2 = compare_3 and compare_4
    alphabet_index = ord(x.lower()) - ord("a") + 1
    times_1 = int(and_1) * alphabet_index
    times_2 = alphabet_index * int(and_2)
    minus = times_1 - times_2
    result += minus

print(result)