#B4128. Student Number Calculation
Student Number Calculation
Student Number Calculation
At the 2014 "Information and Future" elementary summer camp hosted at the Hexi Campus of Jinling High School in Jiangsu Province, a flag bearer was chosen from among the students. Each student has a name in Pinyin composed entirely of uppercase English letters without spaces. For example, for the Chinese name '王小明', the corresponding Pinyin is WANGXIAOMING
.
Every uppercase letter has an associated ASCII code as shown in the table below:
Character | ASCII Code (decimal) |
---|---|
$\tt A$ | $65$ |
$\tt B$ | $66$ |
\(\cdots\) | \(\cdots\) |
$\tt Z$ | $90$ |
The student's number is the sum of the ASCII codes of each character in their Pinyin name. Your task is to compute this number given the student's name.
inputFormat
The input consists of a single line containing a non-empty string of uppercase English letters representing the student's Pinyin name.
outputFormat
Output a single integer: the sum of the ASCII codes of all characters in the input string.
sample
WANGXIAOMING
905