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