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