Digit Sum - MarisaOJ: Marisa Online Judge

Digit Sum

Time limit: 1000 ms
Memory limit: 256 MB
Calculate the sum of all digits of the integer $n$. ### Input - An integer $n$. ### Output - The sum of all digits of the integer $n$. ### Constraints - $-10^{18} \le n \le 10^{18}$. ### Example Input: ``` 3218 ``` Output: ``` 14 ```