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