str=input()
num=0#用来统计按了几次
one=['a','d','g','j','m','o','t','w']
two=['b','e','h','k','n','q','u','x']
three=['c','f','i','l','o','r','v','y']
four=['z']
for i in str:
if i==' ':
num+=1
str1=str.replace(' ','')
for j in str1:
if j in one:
num+=1
elif j in two:
num+=2
elif j in three:
num+=3
elif j in four:
num+=4
elif j =='\n' or j=='\r':
num+=0
print(num)