using System; class No656{ static void Main(string[] args){ string str=Console.ReadLine(); var add=0; foreach(char c in str){ var score=Int32.Parse(c.ToString()); if(score!=0) add+=score; else add+=10; } Console.WriteLine(add); } }