s = input() ans = 0 for i in s: if i.isdecimal(): ans += int(i) print(ans)