#C8729. Sum of Digits

    ID: 52743 Type: Default 1000ms 256MiB

Sum of Digits

Sum of Digits

Given a positive integer N, calculate the sum of its digits. The task is to compute the sum by converting the integer into a sequence of digits and then summing them up.

You can refer to the formula in LaTeX: \( \text{Sum} = \sum_{i=1}^{k} d_i \), where \( d_i \) is the i-th digit of \( N \).

This problem tests your basic understanding of number processing and is classified as an easy difficulty.

inputFormat

The input consists of a single line containing a positive integer N (\(1 \leq N \leq 10^{9}\)).

outputFormat

Output the sum of the digits of N. The result should be printed to standard output.

## sample
5
5