S = input() num = 0 for i in S: if i.isdigit(): num += int(i) print(num)