Digit sum - MarisaOJ: Marisa Online Judge

Digit sum

Time limit: 1000 ms
Memory limit: 256 MB
Given a string $S$ consisting of digits. Calculate the sum of the digits in $S$. ### Input - A single line containing the string $S$. ### Output - Print the sum of the digits. ### Constraints - $1 \le |S| \le 1000$. ### Sample test ``` 12345 ``` Output: ``` 15 ```