a = raw_input() ; b= 0for i in range(len(a)): b+= ord(a[i])print b
abc
294
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!