S = input() ans = 0 for c in S: if c.isnumeric(): ans += int(c) print(ans)