score = list(map(int,input())) sum_score = 0 for i in range(len(score)): if score[i] == 0: score[i] = 10 sum_score += score[i] print(sum_score)