def main(): S = input() ans = 0 for s in S: if s.isdigit(): ans += int(s) print(ans) main()