LearnPy Hub
← Data Types & Casting problems
Medium

Add Only the Numbers

Read words. Add up the ones that are whole numbers (they may be negative) and print the total.

Input

Words separated by spaces.

Output

One integer.

Sample 1

Input
3 apples 4 pears
Output
7

Sample 2

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