ZUFEOJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
4791: Ace It!
内存限制:256 MB
时间限制:2 S
题面:传统
评测方式:文本比较
上传者:
提交:1
通过:1
提交
提交记录
统计
Web Board
题目描述
F. Ace It!
time limit per test
2 seconds
memory limit per test
64 megabytes
input
standard input
output
standard output
Input
The only line of the input is a string of 7 characters. The first character is letter A, followed by 6 digits. The input is guaranteed to be valid (for certain definition of "valid").
Output
Output a single integer.
Examples
Input
A221033
Output
21
Input
A223635
Output
22
Input
A232726
Output
23
输入样例
复制
输出样例
复制
分类标签
CF656F
1900
*special
problem