LearnPy Hub
← Regular Expressions problems
Easy

Sum the Numbers

Read a line and print the sum of all whole numbers in it (0 if none).

Input

One line.

Output

The sum.

Sample 1

Input
5 apples and 12 mangoes
Output
17

Sample 2

Input
none
Output
0
solution.py
Output appears here
Sum the Numbers · Python practice problem · LearnPy Hub