#C2421. Calculate String Value

    ID: 45736 Type: Default 1000ms 256MiB

Calculate String Value

Calculate String Value

Given a string consisting of lowercase English letters ('a' to 'z'), your task is to calculate the sum of the values of its characters. Each letter is assigned a value as follows: \(a=1,\ b=2,\ldots,\ z=26\).

For example, the string 'abc' has a value of \(1+2+3=6\), the string 'zzz' has a value of \(26+26+26=78\), and 'hello' evaluates to \(8+5+12+12+15=52\). Solve this problem by reading the input from standard input and writing the result to standard output.

inputFormat

The input is provided from stdin as a single line containing a non-empty string composed solely of lowercase letters ('a' to 'z').

outputFormat

Output a single integer to stdout that represents the sum of the letter values in the input string.

## sample
abc
6

</p>