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