def solve(): s = input() score = 0 for c in s: if (c == '0'): score += 10 else: score += int(c) print(score) solve()