S = input() data = [] result = 0 for x in S: if x.isnumeric(): result += int(x) print(result)