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 point;
* Card 2~10 equal to their literal value;
* Face cards J, Q and K equal to , and points respectively.
Data Format
Input
A suit of cards containing cards.
All letters in the input string are uppercase.
Output
An integer of the corresponding point to these cards.
Data Sample
Input
Sample Output
Constraints
The data guarantees that .
相关
在下列训练计划中: