跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F1281. Ace It!

  • ID: 1287
  • 传统题
  • 2000ms
  • 256MiB
  • 尝试: 0
  • AC · 已通过: 0
  • 教学难度:提高
  • 上传者:
  • 待分类
  • 整理状态
  • 提高
  • 难度
  • 共享题库
  • Codeforces
  • 英文题面
  • 题目来源
  • 题面语言

Ace It!

题目描述

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


题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 771 题。保留原作者与原赛事署名。