#35641: python ac


1360467-8@g.puiching.edu.mo (三國迷李牧粉)


a=input()
b=0
for x in a:
    b+=ord(x)-64
print(b)