s=[*input()];c=0 for i in range(len(s)): if s[i].isdigit(): c+=int(s[i]) print(c)