ans = 0 for n in input(): ans += 10 if n == '0' else int(n) print(ans)