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