Problem Statement
Write a program that calculates the sum of all digits in a given positive integer.
For example, if the input is 1234, the digits are 1, 2, 3, and 4. The sum would be 1 + 2 + 3 + 4 = 10.
Your program should read a positive integer from standard input and output the sum of its digits.