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