using System; using System.Collections.Generic; using System.Linq; namespace ContestCSharp { internal class Program { private static void Main() { string instr=Console.ReadLine(); UInt32 answer = 0; for (var i = 0; i <= instr.Length; ++i) { if (UInt32.TryParse(instr.Substring(i,1),out UInt32 n )) { answer += n; } } Console.WriteLine(answer); } } }