S = input() ans = 0 for s in S : if s in [str(i) for i in range(10)] : ans += int(s) print(ans)