string = input() ans = 0 for s in string: if s in "1234567890": ans += int(s) print(ans)