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