S = input() l = len(S) i = 0 q = 0 while i < l: if S[i].isdigit(): q += int(S[i]) i += 1 print(q)