#数字を全て足そう_2 S = input() count = 0 for c in S: if c.isdigit(): count += int(c) print(count)