using System;
public class Program
{
public static void Main()
int the_number,a,b,c,d;
Console.WriteLine("enter the number you want");
the_number=int.Parse(Console.ReadLine());
a=the_number/1000;
b=(the_number/10%10);
c=the_number%100/10;
d=the_number%10;
int digitnum=a+b+c+d;
Console.WriteLine("THE SUM of the digits is {0}",digitnum);
}