S = input() score = 0 for c in S: if c == '0': score += 10 else: score += int(c) print(score)