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 \(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\).

信息

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

相关

在下列训练计划中:

Beginning C