class Problem0656: def solve(this): s = input() res = map(int, list(s)) num = 0 for n in res: if n == 0: num += 10 else: num += n print(num) if __name__ == "__main__": problem = Problem0656() problem.solve()