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