s = input() ans = 0 for i in s: if i == "0": ans += 10 else: ans += int(i) print(ans)