S = input() array = [] for i in range(len(S)): if S[i].isdigit(): array.append(int(S[i])) print(sum(array))