#P656F. Ace It!

Ace It!

No submission language available for this problem.

Description

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 a single integer.

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.

Samples

Sample Input 1

A221033

Sample Output 1

21

Sample Input 2

A223635

Sample Output 2

22

Sample Input 3

A232726

Sample Output 3

23