a = input() total = 0 for i in range(len(a)): if a[i] in "123456789": total += int(a[i]) print(total)