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