#C3551. Sum of Digits in a String

    ID: 46991 Type: Default 1000ms 256MiB

Sum of Digits in a String

Sum of Digits in a String

You are given a string that may contain both numerical and non-numerical characters. Your task is to compute the sum of all the digits present in the string.

The sum is defined as follows:

$$ S = \sum_{i=1}^{n} d_i $$

where \(d_i\) represents each digit found in the string. The program should read from standard input and output the result to standard output.

inputFormat

The input consists of a single line containing a string. The string may include spaces, letters, digits, and other special characters.

Note: The input is provided via standard input (stdin).

outputFormat

Output a single integer representing the sum of all the digits found in the input string.

The output should be printed to standard output (stdout).

## sample
abc123
6