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