b = input() ans = 0 for i in b: if i.isdigit(): ans += int(i) print(ans)