using System; using System.Linq; namespace AtCoder { class Program { static void Main() { var inputs = Console.ReadLine().ToArray(); int sum = 0; foreach (var c in inputs) { if (int.TryParse(c.ToString(), out int num)) { sum += num; } } Console.WriteLine(sum); } } }