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