eolymp
bolt
Try our new interface for solving problems
Problems

Number of digits

Number of digits

Given a string that contains an expression of numbers, signs of arithmetic operations and brackets. Find the number of digits used in the expression.

Input data

Arithmetic expression containing numbers, brackets, and arithmetic characters.

Output

Print the number of digits in the expression.

Time limit 1 second
Memory limit 128 MiB
Input example #1
9*8+76-54/3+2**10
Output example #1
10
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"