inp = list(input()) ls = [int(n) for n in inp if n in "0123456789"] ans = sum(ls) print(ans)