#P656F. Ace It!

Ace It!

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.

A221033<br>
A223635<br>
A232726<br>
21<br>
22<br>
23<br>