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