S = input() ans = sum([int(c) for c in S if c.isdigit()]) print(ans)