Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第一次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: D
Result: Accepted
Time: 111ms
Memory: 24300kB
Author: jszxl
In contest: 1121

st=list(input().split())
tot=0
for i in range(0,5):
  if st[i]=="A":
      tot+=1
  elif st[i]=="B":
      tot+=2
  elif st[i]=="C":
      tot+=3
  else:
      tot+=4
print(tot)