#P212. 练35.2 加加乐
练35.2 加加乐
Description
Nick and Glaire love playing the "Sum Game". The rules are: one person says a number, and the other person must say the sum of its digits. For example, if Nick says 12, Glaire says 3; if Nick says 567, Glaire says 18.
Write a program that takes an integer as input and outputs the sum of its digits.
Input Format
Input an integer.
Output Format
Output the sum of its digits.
Sample
123410