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: 100ms
Memory: 24436kB
Author: 7890
In contest: 1121

k=list(input().split())
score=0
for a in range(0,5):
  if k[a]=="A":
      score=score+1
  if k[a]=="B":
      score=score+2
  if k[a]=="C":
      score=score+3
  if k[a]=="D":
      score=score+4
print(score)