using System; using System.Collections.Generic; class Program { public void Solve() { string S = Console.ReadLine(); int score = 0; foreach (var s in S) { score += int.Parse((s == '0' ? "10" : s.ToString()).ToString()); } Console.WriteLine(score); } static void Main() { var solver = new Program(); solver.Solve(); } }