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