S = [int(i) for i in input().rstrip()] score = 0 for i in S: if i != 0: score += i else: score += 10 print(score)