using System.Linq;using static System.Console;Write(ReadLine().Sum(x=>x<49?10:x-48));