S = input() score = 0 for i in range(len(S)): if S[i] == '0': score += 10 else: score += int(S[i]) print(score)