Type: Default 1000ms 256MiB

C++-字符串-提取整数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

提取整数。 有1行由小写字母和数字组成的字符串(不能有空格),请求出其中所有数的和。 image

Format

Input

Output

Samples

adsf89adfa90zxy1a0af5aatc10
total=195
uoiaadsf12adfadsf9asdfa8aa
total=29
3chm8bvx7sdl
total=18

Limitation

1s, 1024KiB for each test case.