Playing Cards Counting

Playing Cards Counting

Description

Given a suit of a deck of cards (excluding Red / Black Joker and their colors), you need to calculate the equivalent points of them.
* Card A is equivalent to 11 point;
* Card 2~10 equal to their literal value;
* Face cards J, Q and K equal to 1111, 1212 and 1313 points respectively.

Data Format

Input

A suit of cards containing nn cards.
All letters in the input string are uppercase.

Output

An integer of the corresponding point to these nn cards.

Data Sample

Input

A234JQK

Sample Output

46

Constraints

The data guarantees that n100n \le 100.

信息

难度
9
分类
模拟 点击显示
标签
递交数
16
已通过
1
通过率
6%
上传者

相关

在下列训练计划中:

Beginning C