In order to get the last digit of a number, we use modulo operator \%. When the number is modulo divided by 10 we get the last digit.
To find first digit of a number we divide the given number by until number is greater than . At the end we are left with the first digit.
In this challenge, you have to input a five digit number and print the sum of digits of the number.
The input contains a single five digit number, .
Print the sum of the digits of the five digit number.
Sample Input 0
Sample Output 0