You are challenged to play a mental math game called the Digits Game. The rules of the game are as follows.
You and your opponent are given a 4 digit number. You are to add the individual digits of this number and the first person to find the sum wins. Because you are so clever you decide to make a program to calculate the digits for you.
Input Specification
The only line of input will contain a 4 digit number.
Output Specification
Output the sum of each digit in the number.
Sample Input
1337
Sample Output
14
Comments