s = input() total = 0 for i in range(len(s)): if s[i].isdecimal(): total += int(s[i]) print(total)