Alphanumeric Strings

0

0 votes
Easy
Problem

You are given a string which consists of lowercase, uppercase alphabets and numbers in it. Such strings are called alphanumeric strings.

Your task is simple, you just need to separate the numbers from the alphanumeric string and output their sum.

enter image description here


Alphanumeric Strings


Constraints:
1 <= |s| <= 10000


Input Format:
There is only 1 line of input consisting of the alphanumeric string.

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

As there are 3 numbers in the above string: 8,6 and 2

Output will be 8+6+2 = 16

Editor Image

?