Sum of digits

Write a program that reads several numbers and prints the sum of the digits of each one.

Input

Input consists of a sequence of natural numbers.

Output

For every number, print the sum of its digits following the format of the example.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:19:15.716Z

© Jutge.org, 2006–2026.
https://jutge.org