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