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