跳至正文
题库1613
#1613

Ace It!

查看题目操作

Ace It!

题目描述

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

A221033
21
A223635
22
A232726
23