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