using System; namespace yukicoder { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int[] a =new int[9]; int sum = 0; for(int i = 0; i < 9; i++) { a[i] = int.Parse(s.Substring(i,1)); } for(int j = 0; j < 9; j++) { if (a[j] == 0) { a[j] = 10; } sum += a[j]; } Console.WriteLine(sum); } } }