def main(): S = input() answer = 0 for s in S: if s.isdigit(): answer += int(s) print(answer) main()