s = input().strip() total = 0 for c in s: total += 10 if c == '0' else int(c) print(total)