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