Weight Calculator
Time Limit: 1 sec
The Problem
Each alphabet has an ASCII value. Assume ASCII value is the weight of that alphabet. Your task is to find the total weight of a given string.
Example:
School = 83 + 99 + 104 + 111 + 111 + 108 = 616
The Input
The input file contains several lines. Each line contains a string, the string only contain small (a-z) and capital (A-Z) letter alphabets and string length not more than 300. The input file will terminate by EOF.
The Output
For each input string you have to print the total weight of the string in a separate line.
Sample Input
Outsbook
School
Sample Output
854
616
Online Practice Contest 1 [School & College Level]
Problem Setter: Samia Safa Ahmed