🏡 index : github.com/captn3m0/codechef.git

---
category_name: easy
problem_code: KOL15A
problem_name: 'Processing a string'
languages_supported:
    - C
    - CPP14
    - JAVA
    - PYTH
    - 'PYTH 3.5'
max_timelimit: '1'
source_sizelimit: '50000'
problem_author: pnkjjindal
problem_tester: null
date_added: 13-10-2015
tags:
    - acmkol15
    - conversion
    - pnkjjindal
    - simple
    - strings
editorial_url: 'http://discuss.codechef.com/problems/KOL15A'
time:
    view_start_date: 1446296400
    submit_start_date: 1446296400
    visible_start_date: 1446296400
    end_date: 1735669800
    current: 1525198937
is_direct_submittable: false
layout: problem
---
All submissions for this problem are available.Given an alphanumeric string made up of digits and lower case Latin characters only, find the sum of all the digit characters in the string.

### Input

- The first line of the input contains an integer **T** denoting the number of test cases. Then **T** test cases follow.
- Each test case is described with a single line containing a string **S**, the alphanumeric string.

### Output

- For each test case, output a single line containing the sum of all the digit characters in that string.

### Constraints

- **1** ≤ **T** ≤ **1000**
- **1** ≤ **|S|** ≤ **1000**, where |S| is the length of the string S.

### Example

<pre><b>Input:</b>
1
ab1231da

<b>Output:</b>
7
</pre>### Explanation

The digits in this string are 1, 2, 3 and 1. Hence, the sum of all of them is 7.