total = sum([int(i) if i.isdigit() else 0 for i in input()]) print(total)