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