using System;
public class Program
{
public static void Main()
int n,ah,ash,m,aa;
Console.WriteLine("enter the number");
n=int.Parse(Console.ReadLine());
ah=n%10;
ash=(n%100)/10;
m=(n/100)%10;
aa=n/1000;
Console.WriteLine("the sum of the number is={0}", ah+ash+m+aa);
}