OpenKattis
01. CS2040C Trial PS0

#### Start

2019-08-14 02:00 AKDT

## 01. CS2040C Trial PS0

#### End

2019-08-23 15:59 AKDT
The end is near!
Contest is over.
Not yet started.
Contest is starting in -521 days 15:28:03

229:59:59

0:00:00

# Problem FPrinting Costs

Your workplace is starting to become concerned with the cost of toner used for printing. Of course, some pages are more expensive to print than others. Your job is to write a program that helps to figure out how much toner it will take.

Each character requires a different amount of toner to print. For example, a space requires nothing but a capital Q requires $31$. The following table gives the printing cost of each of the $95$ printable ASCII characters. The codes for these characters are consecutive, starting with $32$ for space and ending with $126$ for tilde (~).

## Output

For each input line, output a line giving the total amount of toner required for printing.

Sample Input 1 Sample Output 1
This is a short line.
THIS IS A LONGER, MORE EXPENSIVE LINE.

300
707
`