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