using System; using System.Linq; class No656{ static void Main(){ Console.WriteLine(Console.ReadLine().Sum(x=>x=='0'?10:x-'0')); } }