#include<stdio.h>
int main()
{
int s=0,l;
long n;
printf("Enter Number : ");
scanf("%ld",&n);
while(n>0)
{
l=n%10;
s=s+l;
n=n/10;
}
printf("\nSum of All Digits : %d",s);
return 0;
}