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