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: 126ms
Memory: 21432kB
Author: 13857575759
In contest: 1085

#!/usr/bin/python
# -*- coding: UTF-8 -*-
str=str(raw_input().strip().split())
s=0
for i in range(len(str)):
    if str[i]=="A": s=s+1
    if str[i]=="B": s=s+2
    if str[i]=="C": s=s+3
    if str[i]=="D": s=s+4
print s