str = input() ans = 0 for c in list(str): if c.isdigit(): ans += int(c) print(ans)