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

Problem_ID: D
Result: Accepted
Time: 122ms
Memory: 21432kB
Author: 13567175595
In contest: 1085

list=map(str,raw_input().split())
i=0
score=0
while i<5:
	if list[i]=="A":score=score+1
	if list[i]=="B":score=score+2
	if list[i]=="C":score=score+3
	if list[i]=="D":score=score+4
	i=i+1
print score