words = input() somma = 0 for i in words: if i.isdecimal(): somma += int(i) print(somma)