x=map(ord,input())print sum(map(lambda(a,b):b-a,zip(x,x[1:])))
"Hello World!"
-39
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!