input_string = input() result = 0 for c in input_string: if c.isdigit(): result += int(c) print(result)