using System; using System.Collections.Generic; namespace yuki783 { class Problem { public static List getinputdata (){ List list_temp = new List(); string strdata = Console.ReadLine (); while (strdata!=null) { string[] s_temp = strdata.Split (' '); list_temp.Add (s_temp); strdata = Console.ReadLine (); } return list_temp; } public static void Main (string[] args) { List list_result = new List(); list_result = getinputdata (); string s =list_result[0][0]; int mysum=0; for (int i = 0; i < s.Length; i++) { if (char.IsNumber(s[i])) { mysum += int.Parse(s[i].ToString()); } } Console.Write(mysum); } } }