s = list(input()) ans = 0 for i in s: if i in "123456789": ans += int(i) print(ans)