using System; public class Program{ public static void Main(){ string s = Console.ReadLine(); int answer = 0; foreach(char c in s) { if(char.IsNumber(c)) { answer = answer + int.Parse(c.ToString()); } } Console.WriteLine(answer); } }