s = str(input()) score = 0 for n in range(9): slice = int(s[n]) if slice == 0: score += 10 score += slice print(score)