using System; namespace yukicoder { class Program { static void Main(string[] args) { string str = Console.ReadLine(); string[] t = {"0","1","2", "3", "4", "5", "6", "7", "8", "9" }; int ans = 0; for(int i = 0; i < str.Length; i++) { string str1 = str.Substring(i, 1); for (int j = 0; j < t.Length; j++) { if (str1 == t[j]) { ans += int.Parse(str1); } } } Console.WriteLine(ans.ToString()); } } }