S = input() ans = sum(int(c) for c in S if c.isdecimal()) print(ans)