using System; using System.Linq; using System.Collections.Generic; namespace test20190423 { class Program { static void Main(string[] args) { var ret = 0; Console.ReadLine().ToCharArray().ToList().ForEach(x => { if (char.IsNumber(x)) ret += int.Parse(x.ToString()); }); Console.WriteLine(ret); Console.ReadLine(); } } }