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