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