using System; using System.Linq; public class Program { public static void Main(string[] args) { Console.WriteLine(Console.ReadLine().Where(char.IsDigit).Sum(c => c - '0')); } }