S = input() ans = 0 for i in range(len(S)): #print(S[i]) if S[i].isdigit(): a = int(S[i]) ans = ans + a print(ans)