text = input() sum = 0 for i in text: if i.isdigit(): sum = sum + int(i) print(sum)