using System;
public class Program
{
public static int SumDigits(int inputInt)
{
string inputString = inputInt.ToString();
int sumDigits = 0;
for(int i = 0; i < inputString.Length; i++)
{
int currentDigit = int.Parse(inputString[i].ToString());
sumDigits += currentDigit;
}
return sumDigits;
}
public static void Main()
{
//test value -> output 30
Console.WriteLine(SumDigits(464646));
}
}