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