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